Librarian in regular requirements.
[redakcja.git] / redakcja / static / js / wiki_img / loader.js
index 41a029d..c3fe03e 100644 (file)
@@ -5,7 +5,7 @@ if (!window.console) {
     }
 }
 
-DEFAULT_PERSPECTIVE = "#SummaryPerspective";
+DEFAULT_PERSPECTIVE = "#MotifsPerspective";
 
 $(function()
 {
@@ -33,6 +33,7 @@ $(function()
                 * TABS
                 */
         $('.tabs li').live('click', function(event, callback) {
+            event.preventDefault();
                        $.wiki.switchToTab(this);
         });
 
@@ -134,26 +135,3 @@ $(function()
 });
 
 
-// Wykonuje block z zaƂadowanymi kanonicznymi motywami
-function withThemes(code_block, onError)
-{
-    if (typeof withThemes.canon == 'undefined') {
-        $.ajax({
-            url: '/themes',
-            dataType: 'text',
-            success: function(data) {
-                withThemes.canon = data.split('\n');
-                code_block(withThemes.canon);
-            },
-            error: function() {
-                withThemes.canon = null;
-                code_block(withThemes.canon);
-            }
-        })
-    }
-    else {
-        code_block(withThemes.canon);
-    }
-}
-
-