diff options
author | patdenice <patdenice@piwigo.org> | 2011-04-12 11:44:49 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-04-12 11:44:49 +0000 |
commit | d6e4e569c00b503174799e168122e133077ef7c5 (patch) | |
tree | d7249d5fcab39dc7d76c424455097d14776ee5bb /plugins/LocalFilesEditor/admin.tpl | |
parent | 95604ad8c13595e1625992d523c75c8a3c510635 (diff) |
Bug corrected if no textarea displayed.
git-svn-id: http://piwigo.org/svn/trunk@10312 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/LocalFilesEditor/admin.tpl | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/admin.tpl index 252885656..d59df2f27 100644 --- a/plugins/LocalFilesEditor/admin.tpl +++ b/plugins/LocalFilesEditor/admin.tpl @@ -14,11 +14,12 @@ {combine_css path="plugins/LocalFilesEditor/locfiledit.css"} {footer_script} -var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} - matchBrackets: true, - mode: "{$CODEMIRROR_MODE}", - tabMode: "shift" -}); +if (document.getElementById("text") != null) + var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} + matchBrackets: true, + mode: "{$CODEMIRROR_MODE}", + tabMode: "shift" + }); {/footer_script} <div class="titrePage"> |