aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/LocalFilesEditor/admin.tpl
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-04-12 11:46:02 +0000
committerpatdenice <patdenice@piwigo.org>2011-04-12 11:46:02 +0000
commit6328b7fcbc72472a5e4da18301c68bb7ca20fdc6 (patch)
tree99628202e6ec87595a5a6254623a834bc1e844b1 /plugins/LocalFilesEditor/admin.tpl
parent5a3fc07ba42570432887f1ab66f1f12fdab4999e (diff)
merge r10312 from trunk to branch 2.2
Bug corrected if no textarea displayed. git-svn-id: http://piwigo.org/svn/branches/2.2@10313 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/admin.tpl11
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">