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) {
// 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');

View File

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