Fix 'remove video' option
This commit is contained in:
parent
8b69485448
commit
7bc247ede2
2 changed files with 8 additions and 5 deletions
|
|
@ -733,9 +733,7 @@ function applyOpts() {
|
|||
}
|
||||
|
||||
if(USEROPTS.hidevid) {
|
||||
$("#qualitywrap").html("");
|
||||
removeVideo();
|
||||
$("#chatwrap").removeClass("col-lg-5 col-md-5").addClass("col-lg-12 col-md-12");
|
||||
}
|
||||
|
||||
$("#chatbtn").remove();
|
||||
|
|
@ -1718,7 +1716,7 @@ function handleVideoResize() {
|
|||
var intv, ticks = 0;
|
||||
var resize = function () {
|
||||
if (++ticks > 10) clearInterval(intv);
|
||||
if ($("#ytapiplayer").parent().height() === 0) return;
|
||||
if ($("#ytapiplayer").parent().outerHeight() <= 0) return;
|
||||
clearInterval(intv);
|
||||
|
||||
var responsiveFrame = $("#ytapiplayer").parent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue