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() {
|
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();
|
||||||
|
|
Loading…
Reference in New Issue