Cleanup comments and whitespaces
This commit is contained in:
parent
017d4b8c9d
commit
fa2c9e46ed
|
@ -24,8 +24,8 @@
|
|||
Navigation.prototype.onRendered = function(evt) {
|
||||
// get original source element of the rendered-event
|
||||
var el = evt.target;
|
||||
// restore old menu state
|
||||
if (activeMenuId) {
|
||||
// restore old menu state
|
||||
$('[role="navigation"] li.active', el).removeClass('active');
|
||||
var $selectedMenu = $('#' + activeMenuId).addClass('active');
|
||||
var $outerMenu = $selectedMenu.parent().closest('li');
|
||||
|
|
|
@ -340,9 +340,7 @@
|
|||
if (! req.autorefresh) {
|
||||
// TODO: Hook for response/url?
|
||||
var $forms = $('[action="' + this.icinga.utils.parseUrl(url).path + '"]');
|
||||
|
||||
var $matches = $.merge($('[href="' + url + '"]'), $forms);
|
||||
|
||||
$matches.each(function (idx, el) {
|
||||
if ($(el).closest('#menu').length) {
|
||||
self.icinga.behaviors.navigation.resetActive();
|
||||
|
@ -367,7 +365,6 @@
|
|||
});
|
||||
} else {
|
||||
// TODO: next container url
|
||||
// Get first container url?
|
||||
active = $('[href].active', req.$target).attr('href');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue