X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1a0d01d9cdbffcf9667562502c3d2e36e5a9fa5b..9f979033640e55e9eaf62d1f1ae8dca634bdd6e2:/redakcja/static/js/wiki/base.js diff --git a/redakcja/static/js/wiki/base.js b/redakcja/static/js/wiki/base.js index 61a3949b..de1d8e5d 100644 --- a/redakcja/static/js/wiki/base.js +++ b/redakcja/static/js/wiki/base.js @@ -111,7 +111,7 @@ if($tab.length != 1) $tab = $(DEFAULT_PERSPECTIVE); - var $old = $('#tabs li').filter('.active'); + var $old = $tab.closest('.tabs').find('.active'); $old.each(function(){ $(this).removeClass('active');