X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..ee77d43cb32edb0f8b838204e0583ab1a2757d3a:/redakcja/static/js/wiki_img/loader.js?ds=inline diff --git a/redakcja/static/js/wiki_img/loader.js b/redakcja/static/js/wiki_img/loader.js index 41a029d7..c3fe03e0 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() { @@ -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); - } -} - -