JS: Don't use deprecated jQuery function size() in navigation.js

refs #5543
This commit is contained in:
Eric Lippmann 2015-11-09 16:44:37 +01:00
parent 70d7f7f669
commit 68777b2b6a
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@
// initialise the menu selected by the backend as active. // initialise the menu selected by the backend as active.
var $menus = $('#menu li.active', e.target); var $menus = $('#menu li.active', e.target);
if ($menus.size()) { if ($menus.length) {
$menus.each(function () { $menus.each(function () {
_this.setActive($(this)); _this.setActive($(this));
}); });
@ -207,7 +207,7 @@
// unfold the containing menu // unfold the containing menu
var $outerMenu = $selectedMenu.parent().closest('li'); var $outerMenu = $selectedMenu.parent().closest('li');
if ($outerMenu.size()) { if ($outerMenu.length) {
$outerMenu.addClass('active'); $outerMenu.addClass('active');
} }
} else if ($input.length) { } else if ($input.length) {