diff options
author | patdenice <patdenice@piwigo.org> | 2011-04-13 10:38:45 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-04-13 10:38:45 +0000 |
commit | 7211eee1caba1b1d798449b6df6def86c50552ef (patch) | |
tree | e56f5030267867ab82aa4328eb9f5cc42d3429b5 /plugins/LocalFilesEditor/template/show_default.tpl | |
parent | acd200d6472f4e141c45c51c2d15dea8667d71d5 (diff) |
merge r10348 from trunk to branch 2.2
Clean code
git-svn-id: http://piwigo.org/svn/branches/2.2@10349 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/LocalFilesEditor/template/show_default.tpl (renamed from plugins/LocalFilesEditor/show_default.tpl) | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/plugins/LocalFilesEditor/show_default.tpl b/plugins/LocalFilesEditor/template/show_default.tpl index ef6970d41..cd6c3f318 100644 --- a/plugins/LocalFilesEditor/show_default.tpl +++ b/plugins/LocalFilesEditor/template/show_default.tpl @@ -1,8 +1,3 @@ -{html_head} -<style type="text/css">#headbranch, #theHeader, #copyright {ldelim} display: none; }</style> -{/html_head} -{combine_script id="jquery"} - {combine_script id="codemirror" path="plugins/LocalFilesEditor/codemirror/lib/codemirror.js"} {combine_script id="codemirror.xml" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/xml/xml.js"} {combine_script id="codemirror.javascript" require="codemirror" path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.js"} @@ -16,20 +11,27 @@ {combine_css path="plugins/LocalFilesEditor/codemirror/mode/javascript/javascript.css"} {combine_css path="plugins/LocalFilesEditor/codemirror/mode/css/css.css"} {combine_css path="plugins/LocalFilesEditor/codemirror/mode/clike/clike.css"} -{combine_css path="plugins/LocalFilesEditor/locfiledit.css"} +{combine_css path="plugins/LocalFilesEditor/template/locfiledit.css"} {footer_script} var editor = CodeMirror.fromTextArea(document.getElementById("text"), {ldelim} - matchBrackets: true, readOnly: true, - mode: "{$CODEMIRROR_MODE}", - tabMode: "shift" + mode: "application/x-httpd-php" }); {/footer_script} +{html_head} +<style type="text/css"> +#headbranch, #theHeader, #copyright {ldelim} display: none; } +</style> +{/html_head} + <div id="LocalFilesEditor"> -<div style="overflow:auto;"><b>{$TITLE}</b></div> -<textarea id="text" rows="30" cols="90">{$DEFAULT_CONTENT}</textarea> +<div id="title_bar"> + <span class="file_name">{$TITLE}</span> +</div> + +<textarea id="text" rows="30" cols="90" class="show_default_area">{$DEFAULT_CONTENT}</textarea> </div> |