mirror of https://github.com/calzoneman/sync.git
Hide embedded player while login modal is active
This commit is contained in:
parent
84fb4214d7
commit
6eaa97ccb8
|
@ -845,6 +845,7 @@ function newPollMenu() {
|
|||
}
|
||||
|
||||
function showLoginFrame() {
|
||||
$("#ytapiplayer").hide();
|
||||
var modal = $("<div/>").addClass("modal hide fade")
|
||||
.appendTo($("body"));
|
||||
var head = $("<div/>").addClass("modal-header")
|
||||
|
@ -908,6 +909,7 @@ function showLoginFrame() {
|
|||
}
|
||||
var footer = $("<div/>").addClass("modal-footer").appendTo(modal);
|
||||
modal.on("hidden", function() {
|
||||
$("#ytapiplayer").show();
|
||||
modal.remove();
|
||||
});
|
||||
modal.modal();
|
||||
|
|
Loading…
Reference in New Issue