More modal fixes

This commit is contained in:
calzoneman 2013-05-12 22:11:32 -04:00
parent a6fff1c849
commit b98a785740
1 changed files with 4 additions and 4 deletions

View File

@ -653,7 +653,7 @@ function onWindowFocus() {
}
function newPollMenu() {
var vid = $("#ytapiplayer").detach();
PLAYER.hide();
var modal = $("<div/>").addClass("modal hide fade")
.appendTo($("body"));
var head = $("<div/>").addClass("modal-header")
@ -712,14 +712,14 @@ function newPollMenu() {
.appendTo(footer)
.click(submit);
modal.on("hidden", function() {
vid.appendTo($("#videodiv"));
PLAYER.unhide();
modal.remove();
});
modal.modal();
}
function showLoginFrame() {
var vid = $("#ytapiplayer").detach();
PLAYER.hide();
var modal = $("<div/>").addClass("modal hide fade")
.appendTo($("body"));
var head = $("<div/>").addClass("modal-header")
@ -799,7 +799,7 @@ function showLoginFrame() {
}
var footer = $("<div/>").addClass("modal-footer").appendTo(modal);
modal.on("hidden", function() {
vid.appendTo($("#videodiv"));
PLAYER.unhide();
modal.remove();
});
modal.modal();