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