Skip to content

Commit

Permalink
Cleanup comments and whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
majentsch committed Oct 1, 2014
1 parent 017d4b8 commit fa2c9e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion public/js/icinga/behavior/navigation.js
Expand Up @@ -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');
Expand Down
3 changes: 0 additions & 3 deletions public/js/icinga/loader.js
Expand Up @@ -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();
Expand All @@ -367,7 +365,6 @@
});
} else {
// TODO: next container url
// Get first container url?
active = $('[href].active', req.$target).attr('href');
}

Expand Down

0 comments on commit fa2c9e4

Please sign in to comment.