CC-6130 - fix empty placeholders appearing when search returns no results
This commit is contained in:
parent
53b835715a
commit
ba26adc904
2 changed files with 6 additions and 19 deletions
|
@ -164,9 +164,9 @@ div.btn > span {
|
||||||
#library_empty {
|
#library_empty {
|
||||||
display: none;
|
display: none;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
position: fixed;
|
position: absolute;
|
||||||
/*width: 100%;*/
|
width: 100%;
|
||||||
/*top: 44%;*/
|
top: 44%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #efefef;
|
color: #efefef;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,10 +95,9 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
+ "<br/>" + $.i18n._(opts.subtext)
|
+ "<br/>" + $.i18n._(opts.subtext)
|
||||||
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
|
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
|
||||||
);
|
);
|
||||||
|
|
||||||
libEmpty.show();
|
|
||||||
AIRTIME.library.onResize();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
libEmpty.show();
|
||||||
} else {
|
} else {
|
||||||
libEmpty.hide();
|
libEmpty.hide();
|
||||||
}
|
}
|
||||||
|
@ -374,18 +373,6 @@ var AIRTIME = (function(AIRTIME) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.onResize = function() {
|
|
||||||
var libEmpty = $('#library_empty'), wrapper = $('#library_display_wrapper').find('.dataTables_scrolling');
|
|
||||||
libEmpty.css('left', wrapper.offset().left + (wrapper.width() / 2) - (libEmpty.width() / 2) - $(window).scrollLeft());
|
|
||||||
libEmpty.css('top', wrapper.offset().top + (wrapper.height() / 2) - (libEmpty.height() / 2) + 19 - $(window).scrollTop());
|
|
||||||
};
|
|
||||||
|
|
||||||
return AIRTIME;
|
return AIRTIME;
|
||||||
|
|
||||||
}(AIRTIME || {}));
|
}(AIRTIME || {}));
|
||||||
|
|
||||||
$(window).resize(AIRTIME.library.onResize);
|
|
||||||
$(window).scroll(AIRTIME.library.onResize);
|
|
||||||
$(document).ready(function() {
|
|
||||||
$('#content').scroll(AIRTIME.library.onResize);
|
|
||||||
});
|
|
Loading…
Add table
Add a link
Reference in a new issue