From 68777b2b6a12fc8483d606319a001977a32deb59 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Mon, 9 Nov 2015 16:44:37 +0100 Subject: [PATCH] JS: Don't use deprecated jQuery function size() in navigation.js refs #5543 --- public/js/icinga/behavior/navigation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/navigation.js b/public/js/icinga/behavior/navigation.js index 29bb65fba..323a308ed 100644 --- a/public/js/icinga/behavior/navigation.js +++ b/public/js/icinga/behavior/navigation.js @@ -57,7 +57,7 @@ // initialise the menu selected by the backend as active. var $menus = $('#menu li.active', e.target); - if ($menus.size()) { + if ($menus.length) { $menus.each(function () { _this.setActive($(this)); }); @@ -207,7 +207,7 @@ // unfold the containing menu var $outerMenu = $selectedMenu.parent().closest('li'); - if ($outerMenu.size()) { + if ($outerMenu.length) { $outerMenu.addClass('active'); } } else if ($input.length) {