From b98a7857402f42e6262a068eb59db51996ee2908 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Sun, 12 May 2013 22:11:32 -0400 Subject: [PATCH] More modal fixes --- www/assets/js/functions.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/assets/js/functions.js b/www/assets/js/functions.js index 936c39ea..0c7b9aa4 100644 --- a/www/assets/js/functions.js +++ b/www/assets/js/functions.js @@ -653,7 +653,7 @@ function onWindowFocus() { } function newPollMenu() { - var vid = $("#ytapiplayer").detach(); + PLAYER.hide(); var modal = $("
").addClass("modal hide fade") .appendTo($("body")); var head = $("
").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 = $("
").addClass("modal hide fade") .appendTo($("body")); var head = $("
").addClass("modal-header") @@ -799,7 +799,7 @@ function showLoginFrame() { } var footer = $("
").addClass("modal-footer").appendTo(modal); modal.on("hidden", function() { - vid.appendTo($("#videodiv")); + PLAYER.unhide(); modal.remove(); }); modal.modal();