-// 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);
- }
-}
-
-