X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f06b3e117258f7968b7df783064c2a4deb6e3879..e6e1017c531add5a7a5cbd4e24dc38fce4da0ea0:/redakcja/static/js/wiki/base.js?ds=inline 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');