Hide embedded player while login modal is active

This commit is contained in:
calzoneman 2013-04-26 12:28:02 -05:00
parent 84fb4214d7
commit 6eaa97ccb8
1 changed files with 2 additions and 0 deletions

View File

@ -845,6 +845,7 @@ function newPollMenu() {
} }
function showLoginFrame() { function showLoginFrame() {
$("#ytapiplayer").hide();
var modal = $("<div/>").addClass("modal hide fade") var modal = $("<div/>").addClass("modal hide fade")
.appendTo($("body")); .appendTo($("body"));
var head = $("<div/>").addClass("modal-header") var head = $("<div/>").addClass("modal-header")
@ -908,6 +909,7 @@ function showLoginFrame() {
} }
var footer = $("<div/>").addClass("modal-footer").appendTo(modal); var footer = $("<div/>").addClass("modal-footer").appendTo(modal);
modal.on("hidden", function() { modal.on("hidden", function() {
$("#ytapiplayer").show();
modal.remove(); modal.remove();
}); });
modal.modal(); modal.modal();