Allow assigning woblink authors in catalogue.
[redakcja.git] / src / redakcja / static / js / wiki / base.js
index 5262ab7..b4fee85 100644 (file)
                return this.perspectives[ $(tab).attr('id')];
        }
 
+    $.wiki.exitTab = function(tab){
+       var self = this;
+       var $tab = $(tab);
+        if (!('.active', $tab)) return;
+       $('.active', $tab).removeClass('active');
+       self.perspectives[$tab.attr('id')].onExit();
+       $('#' + $tab.attr('data-ui-related')).hide();
+    }
+    
     $.wiki.switchToTab = function(tab){
        var self = this;
        var $tab = $(tab);