X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5ef8e304790026b27417d8ff3c76c18858ba708f..73ef2b8442dc95f8b7279de812c30ac8626d5f39:/redakcja/static/js/wiki_img/loader.js diff --git a/redakcja/static/js/wiki_img/loader.js b/redakcja/static/js/wiki_img/loader.js index 41a029d7..9cfc640d 100644 --- a/redakcja/static/js/wiki_img/loader.js +++ b/redakcja/static/js/wiki_img/loader.js @@ -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); - } -} - -