Skip to content

Commit

Permalink
UI-2369: Only reload tab if it is not active already so we avoid loop…
Browse files Browse the repository at this point in the history
…ing indefinitely
  • Loading branch information
joristirado committed Nov 18, 2016
1 parent ceda35b commit 06dff08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/lib/monster.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2025,7 +2025,9 @@ define(function(require){
var self = this,
$tab = $('.navbar-menu-item-link[data-id="' + id + '"]');

self.onNavbarTabClick(thisArg, $tab);
if (!$tab.hasClass('active')) {
self.onNavbarTabClick(thisArg, $tab);
}
},

mask: function(target, type) {
Expand Down

0 comments on commit 06dff08

Please sign in to comment.