X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/07689901a9bf30daeccf8a1ceb7193fe771eb3ac..74378d009ec094bd52789bcb5f1a7be89c3509de:/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..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); - } -} - -