summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules-available/summernote/clientscript.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/modules-available/summernote/clientscript.js b/modules-available/summernote/clientscript.js
index 69d7da93..a42853d3 100644
--- a/modules-available/summernote/clientscript.js
+++ b/modules-available/summernote/clientscript.js
@@ -5,11 +5,7 @@ return a.each(f,function(a,b){p.appendChildNodes(e,b.childNodes),p.remove(b)}),d
/* load the specific locale */
-var filename = "modules/summernote/lang/summernote-" + LANG + ".js";
-
-$.getScript(filename, function () {
- console.log('loaded language ' + LANG + ', now enable the editor');
- console.log($('.summernote'));
+$.cachedScript("modules/summernote/lang/summernote-" + LANG + ".js").always(function () {
$('.summernote').summernote( {
toolbar: [
// [groupName, [list of button]]