Merge master into img-playground. Image support with new management features. Missing...
[redakcja.git] / redakcja / static / js / wiki_img / loader.js
index 41a029d..9cfc640 100644 (file)
@@ -5,7 +5,7 @@ if (!window.console) {
     }
 }
 
-DEFAULT_PERSPECTIVE = "#SummaryPerspective";
+DEFAULT_PERSPECTIVE = "#MotifsPerspective";
 
 $(function()
 {
@@ -134,26 +134,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);
-    }
-}
-
-