Cleanup comments and whitespaces

This commit is contained in:
Matthias Jentsch 2014-10-01 16:48:38 +02:00
parent 017d4b8c9d
commit fa2c9e46ed
2 changed files with 1 additions and 4 deletions

View File

@ -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');

View File

@ -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');
} }