JS: Don't use deprecated jQuery function size() in navigation.js
refs #5543
This commit is contained in:
parent
70d7f7f669
commit
68777b2b6a
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue