X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/413c112e479cef57fe2b2047f4820046cd7db4b4..e77f342a73c940f16c37f57ffa50edce9caef8f0:/redakcja/static/js/button_scripts.js?ds=sidebyside diff --git a/redakcja/static/js/button_scripts.js b/redakcja/static/js/button_scripts.js index e7b1c42a..2a585dc5 100644 --- a/redakcja/static/js/button_scripts.js +++ b/redakcja/static/js/button_scripts.js @@ -258,18 +258,18 @@ function ScriptletCenter() ScriptletCenter.prototype.callInteractive = function(opts) { $progress = $('Executing script'); var self = this; - + /* This won't work, 'cause the JS below might be synchronous :( */ /* var timer = setTimeout(function() { $.blockUI({message: $progress}); timer = null; }, 1000); */ - + $.blockUI({message: $progress, showOverlay: false}); self.scriptlets[opts.action](opts.context, opts.extra, function(){ - /*if(timer) - clearTimeout(timer); + /*if(timer) + clearTimeout(timer); else */ $.unblockUI(); // done }); @@ -282,7 +282,7 @@ ScriptletCenter.prototype.XMLEditorSelectedText = function(editor) { ScriptletCenter.prototype.XMLEditorReplaceSelectedText = function(editor, replacement) { - $progress.html("Replacing text"); + $progress.html("Replacing text"); editor.replaceSelection(replacement); };