Skip to content

Commit

Permalink
Resolving Issue #2430
Browse files Browse the repository at this point in the history
"New Device" menu item showing as selected incorrect when "Devices" clicked
  • Loading branch information
cigamit committed Mar 10, 2019
1 parent 1074593 commit 99b9a3c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Cacti CHANGELOG

1.2.3
-issue#2430: "New Device" menu item showing as selected incorrect when "Devices" clicked
-issue#2449: Index incorrectly changed to 1 if the index is alphanumeric when <source> OID/REGEXP: or OIDVALUE/REGEXP:
-issue#2452: Missing 'getSNMPQueries()' function when calling add_data_query.php
-issue#2453: Cannot retrieve list of snmp values via CLI
Expand Down
9 changes: 9 additions & 0 deletions include/themes/paw/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ function setMenuVisibility() {
storage.set($(this).closest('.menuitem').attr('id'), 'collapsed');
}
}

$('li.menuitem').not('#'+id).each(function() {
text = $(this).attr('id');
id = $(this).attr('id');

$(this).find('ul').attr('aria-hidden', 'true').attr('aria-expanded', 'false');
$(this).find('ul').slideUp( { duration: 200, easing: 'swing' } );
storage.set($(this).attr('id'), 'collapsed');
});
});
}

0 comments on commit 99b9a3c

Please sign in to comment.