fnp
/
fnpeditor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Visual editor uses actual publications data
[fnpeditor.git]
/
modules
/
tabsManager.js
diff --git
a/modules/tabsManager.js
b/modules/tabsManager.js
index
cec88dc
..
1dd857d
100644
(file)
--- a/
modules/tabsManager.js
+++ b/
modules/tabsManager.js
@@
-14,6
+14,9
@@
rng.modules.tabsManager = function(sandbox) {
if(prevActive.length)
\r
prevSlug = prevActive.find('a').attr('href').substr(1);
\r
\r
+ if(prevSlug == slug)
\r
+ return;
\r
+
\r
tabBar.find('li').removeClass('active');
\r
tabBar.find('a[href=#' + slug + ']').parent().addClass('active');
\r
\r