X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..0a2221a9af54f60f93f0d9799a4b87a5774667d8:/redakcja/static/js/wiki_img/loader.js?ds=sidebyside 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); - } -} - -