Add audience and thema data to catalogue. Also: nicer cover view.
[redakcja.git] / src / redakcja / static / js / wiki / loader_readonly.js
index 43b8c9b..2d31123 100644 (file)
@@ -72,22 +72,8 @@ $(function()
        /* Load configuration */
        $.wiki.loadConfig();
 
-       var initAll = function(a, f) {
-               if (a.length == 0) return f();
-
-               $.wiki.initTab({
-                       tab: a.pop(),
-                       doc: CurrentDocument,
-                       callback: function(){
-                               initAll(a, f);
-                       }
-               });
-       };
-
-
-       /*
-        * Initialize all perspectives
-        */
-       initAll( $.makeArray($('#tabs li')), initialize);
-       console.log(location.hash);
+    $('.tabs li').each((i, e) => {
+        $.wiki.initTab({tab: e, doc: CurrentDocument});
+    });
+    initialize();
 });