aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2011-02-11 16:05:31 +0000
committerpatdenice <patdenice@piwigo.org>2011-02-11 16:05:31 +0000
commit8ecf5649bbb3aa6f75640dfb32a99f4cbaccede2 (patch)
tree799e158770016f47ae88f985e1f56cd913a2d49d
parentd37ec3ddfd467f4b268086828440757133d0457e (diff)
Remove knwo_script from LocalFiles Editor
git-svn-id: http://piwigo.org/svn/trunk@9173 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/LocalFilesEditor/admin.tpl20
1 files changed, 9 insertions, 11 deletions
diff --git a/plugins/LocalFilesEditor/admin.tpl b/plugins/LocalFilesEditor/admin.tpl
index d3e351db4..72880dd05 100644
--- a/plugins/LocalFilesEditor/admin.tpl
+++ b/plugins/LocalFilesEditor/admin.tpl
@@ -1,8 +1,6 @@
-{html_head}<link rel="stylesheet" type="text/css" href="{$LOCALEDIT_PATH}locfiledit.css">{/html_head}
-{known_script id="editarea" src=$LOCALEDIT_PATH|@cat:"editarea/edit_area_full.js"}
-<script type="text/javascript">
-var editarea = "{$LOAD_EDITAREA}";
-
+{html_head}<script type="text/javascript" src="{$ROOT_URL}plugins/LocalFilesEditor/editarea/edit_area_full.js"></script>{/html_head}
+{combine_css path="plugins/LocalFilesEditor/locfiledit.css"}
+{footer_script}
function loadEditarea() {ldelim}
editAreaLoader.init({ldelim}
id: "text"
@@ -21,7 +19,12 @@ function unloadEditarea() {ldelim}
jQuery("#showedit").show();
jQuery.post("plugins/LocalFilesEditor/update_config.php", {ldelim} editarea: "off"});
}
-</script>
+
+jQuery("#editarea_buttons").show();
+{if $LOAD_EDITAREA == 'on'}
+if (document.getElementById("text") != null) loadEditarea();
+{/if}
+{/footer_script}
<div class="titrePage">
<h2>LocalFiles Editor</h2>
@@ -96,8 +99,3 @@ function unloadEditarea() {ldelim}
{/if}
</div>
</form>
-
-<script type="text/javascript">
-jQuery("#editarea_buttons").show();
-if ((editarea == "on") && (document.getElementById("text") != null)) loadEditarea();
-</script>