[core] Avoid JS error on window resize when the user has visited the server logs page
@@ -158,6 +158,7 @@ ${layout.menubar(section='log_view')}
function resizeScrollingLogs() {
var _el = $("#hue-logs");
+ if (_el.length > 0) {
if (!$.browser.msie) {
_el.css("overflow-y", "").css("height", "");
}
@@ -169,6 +170,7 @@ ${layout.menubar(section='log_view')}
_el.css("overflow-y", "auto").height($(window).height() - _el.offset().top - heightAfter - 30);
}
}
+ }
function filterLogs(query) {
$("#hue-logs-search-query").removeClass("notFound");
