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 {
|
||||
display: none;
|
||||
font-size: 16px;
|
||||
position: fixed;
|
||||
/*width: 100%;*/
|
||||
/*top: 44%;*/
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
top: 44%;
|
||||
text-align: center;
|
||||
color: #efefef;
|
||||
}
|
||||
|
|
|
@ -95,10 +95,9 @@ var AIRTIME = (function(AIRTIME) {
|
|||
+ "<br/>" + $.i18n._(opts.subtext)
|
||||
+ "<br/><a target='_blank' href='" + opts.href + "'>" + $.i18n._("Learn about " + opts.media) + "</a>"
|
||||
);
|
||||
});
|
||||
|
||||
libEmpty.show();
|
||||
AIRTIME.library.onResize();
|
||||
});
|
||||
} else {
|
||||
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;
|
||||
|
||||
}(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