Add audience and thema data to catalogue. Also: nicer cover view.
[redakcja.git] / src / redakcja / static / js / wiki / base.js
index 4d3a062..d914168 100644 (file)
     $.wiki.exitTab = function(tab){
         var self = this;
         var $tab = $(tab);
-        if (!('.active', $tab)) return;
+        if (!('.active', $tab).length) return;
         $('.active', $tab).removeClass('active');
         self.perspectives[$tab.attr('id')].onExit();
         $('#' + $tab.attr('data-ui-related')).hide();