Skip to content

Commit

Permalink
JS: Don't use deprecated jQuery function size() in navigation.js
Browse files Browse the repository at this point in the history
refs #5543
  • Loading branch information
lippserd committed Nov 9, 2015
1 parent 70d7f7f commit 68777b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/icinga/behavior/navigation.js
Expand Up @@ -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));
});
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 68777b2

Please sign in to comment.