X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/5fbecb65c701a7680aae9258ff16df6a1e9f35f5..969ec45041c117313a69c01d49edcc971d46d4b8:/modules/tabsManager.js diff --git a/modules/tabsManager.js b/modules/tabsManager.js index cec88dc..1dd857d 100644 --- a/modules/tabsManager.js +++ b/modules/tabsManager.js @@ -14,6 +14,9 @@ rng.modules.tabsManager = function(sandbox) { if(prevActive.length) prevSlug = prevActive.find('a').attr('href').substr(1); + if(prevSlug == slug) + return; + tabBar.find('li').removeClass('active'); tabBar.find('a[href=#' + slug + ']').parent().addClass('active');