summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-02 16:14:18 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-02 16:14:18 -0400
commitedfbd7e1aa8f9f2cb789f45c0668a0d987e0b368 (patch)
tree9bf2477b03f969620baf550ef9fc6cbc2d83695f /templates
parent1289beb53ba11693cba6d74c5a7da5c29e7cf7fa (diff)
toggle: Add javascript to top of page, not to end. This avoids flicker since closed toggles will not be displayed as the page is loading.
Diffstat (limited to 'templates')
-rw-r--r--templates/editpage.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/editpage.tmpl b/templates/editpage.tmpl
index 42d61c188..f8eda1b47 100644
--- a/templates/editpage.tmpl
+++ b/templates/editpage.tmpl
@@ -1,3 +1,4 @@
+<TMPL_VAR JAVASCRIPT>
<TMPL_IF NAME="PAGE_CONFLICT">
<p>
<b>Your changes conflict with other changes made to the page.</b>
@@ -85,5 +86,3 @@ Optional comment about this change:<br />
<TMPL_VAR PAGE_PREVIEW>
</div>
</TMPL_IF>
-
-<TMPL_VAR JAVASCRIPT>