X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/434a8ca0e146d0ad9514978fffec916c90fb7542..df341bdd09208d2b0f84060454cc0000df19deba:/src/redakcja/static/js/wiki_img/wikiapi.js diff --git a/src/redakcja/static/js/wiki_img/wikiapi.js b/src/redakcja/static/js/wiki_img/wikiapi.js index 377e4f94..21c17fad 100644 --- a/src/redakcja/static/js/wiki_img/wikiapi.js +++ b/src/redakcja/static/js/wiki_img/wikiapi.js @@ -391,28 +391,3 @@ $.wikiapi.WikiDocument = WikiDocument; })(jQuery); - - - -// Wykonuje block z załadowanymi kanonicznymi motywami -function withThemes(code_block, onError) -{ - if (typeof withThemes.canon == 'undefined') { - $.ajax({ - url: '/editor/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); - } -} -