aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-09-27 21:00:12 +0000
committerpatdenice <patdenice@piwigo.org>2008-09-27 21:00:12 +0000
commitd61c255341c0b9c94357ad4e007e138d3a408dff (patch)
tree3526b18ac5c636b90ca27677b0afd1850ce7d4bc
parent781eb636fc950175861f80ca031792d2ac81f321 (diff)
Put resizable and growfield scripts on each page where is needed.
git-svn-id: http://piwigo.org/svn/trunk@2614 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/admin.tpl1
-rw-r--r--admin/template/goto/cat_modify.tpl10
-rw-r--r--admin/template/goto/configuration.tpl10
-rw-r--r--admin/template/goto/double_select.tpl32
-rw-r--r--admin/template/goto/element_set_unit.tpl9
-rw-r--r--admin/template/goto/footer.tpl11
-rw-r--r--admin/template/goto/header.tpl4
-rw-r--r--admin/template/goto/notification_by_mail.tpl9
-rw-r--r--admin/template/goto/picture_modify.tpl10
9 files changed, 63 insertions, 33 deletions
diff --git a/admin/template/goto/admin.tpl b/admin/template/goto/admin.tpl
index d41d5dda7..1c4ca1a6c 100644
--- a/admin/template/goto/admin.tpl
+++ b/admin/template/goto/admin.tpl
@@ -1,5 +1,4 @@
{* $Id$ *}
-{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js" }
{known_script id="jquery.ui.accordion" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.accordion.packed.js" }
diff --git a/admin/template/goto/cat_modify.tpl b/admin/template/goto/cat_modify.tpl
index eb3d67765..de7e9d6a9 100644
--- a/admin/template/goto/cat_modify.tpl
+++ b/admin/template/goto/cat_modify.tpl
@@ -1,4 +1,14 @@
{* $Id$ *}
+{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
+
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery("textarea").growfield({ldelim}
+ animate: false
+ });
+ });
+</script>
+
<div class="titrePage">
<h2>{'title_edit_cat'|@translate}</h2>
</div>
diff --git a/admin/template/goto/configuration.tpl b/admin/template/goto/configuration.tpl
index 8bd9ecaf6..d6c082429 100644
--- a/admin/template/goto/configuration.tpl
+++ b/admin/template/goto/configuration.tpl
@@ -1,4 +1,14 @@
{* $Id$ *}
+{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
+
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery("textarea").growfield({ldelim}
+ animate: false
+ });
+ });
+</script>
+
<div class="titrePage">
<h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2>
</div>
diff --git a/admin/template/goto/double_select.tpl b/admin/template/goto/double_select.tpl
index 95363def8..62930aeb1 100644
--- a/admin/template/goto/double_select.tpl
+++ b/admin/template/goto/double_select.tpl
@@ -2,6 +2,21 @@
{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery(".doubleSelect select.categoryList").resizable({ldelim}
+ handles: "w,e",
+ animate: true,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ preventDefault: true,
+ preserveCursor: true,
+ autoHide: true,
+ ghost: true
+ });
+ });
+</script>
+
<table class="doubleSelect">
<tr>
<td>
@@ -21,20 +36,3 @@
</td>
</tr>
</table>
-
-{literal}
-<script type="text/javascript">
- jQuery().ready(function(){
- jQuery(".doubleSelect select.categoryList").resizable({
- handles: "w,e",
- animate: true,
- animateDuration: "slow",
- animateEasing: "swing",
- preventDefault: true,
- preserveCursor: true,
- autoHide: true,
- ghost: true
- });
- });
-</script>
-{/literal} \ No newline at end of file
diff --git a/admin/template/goto/element_set_unit.tpl b/admin/template/goto/element_set_unit.tpl
index 40e1c1863..4361efff2 100644
--- a/admin/template/goto/element_set_unit.tpl
+++ b/admin/template/goto/element_set_unit.tpl
@@ -1,4 +1,13 @@
{* $Id$ *}
+{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
+
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery("textarea").growfield({ldelim}
+ animate: false
+ });
+ });
+</script>
<h2>{'Batch management'|@translate}</h2>
diff --git a/admin/template/goto/footer.tpl b/admin/template/goto/footer.tpl
index 787bf1f1e..9e0dcd85d 100644
--- a/admin/template/goto/footer.tpl
+++ b/admin/template/goto/footer.tpl
@@ -36,16 +36,5 @@
{/if}
</div> <!-- the_page -->
-{literal}
-<script type="text/javascript">
- jQuery().ready(function(){
- // Auto size for all text area
- jQuery("TEXTAREA").growfield({
- animate: false
- });
- });
-</script>
-{/literal}
-
</body>
</html> \ No newline at end of file
diff --git a/admin/template/goto/header.tpl b/admin/template/goto/header.tpl
index ba45b3be1..04e445004 100644
--- a/admin/template/goto/header.tpl
+++ b/admin/template/goto/header.tpl
@@ -1,7 +1,6 @@
{* $Id$ *}
{*
-
Warning : This is the admin pages header only
don't confuse with the public page header
@@ -22,9 +21,6 @@
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/default-colors.css">
<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js" now=1} {*jQuery is always available by default*}
-{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
-{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
-{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
{$themeconf.local_head}
<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>
diff --git a/admin/template/goto/notification_by_mail.tpl b/admin/template/goto/notification_by_mail.tpl
index ef11e52d1..6f6a57a87 100644
--- a/admin/template/goto/notification_by_mail.tpl
+++ b/admin/template/goto/notification_by_mail.tpl
@@ -1,4 +1,13 @@
{* $Id$ *}
+{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
+
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery("textarea").growfield({ldelim}
+ animate: false
+ });
+ });
+</script>
<div class="titrePage">
<h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2>
diff --git a/admin/template/goto/picture_modify.tpl b/admin/template/goto/picture_modify.tpl
index da8ff2594..a92018732 100644
--- a/admin/template/goto/picture_modify.tpl
+++ b/admin/template/goto/picture_modify.tpl
@@ -1,4 +1,14 @@
{* $Id$ *}
+{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
+
+<script type="text/javascript">
+ jQuery().ready(function(){ldelim}
+ jQuery("textarea").growfield({ldelim}
+ animate: false
+ });
+ });
+</script>
+
<h2>{'title_picmod'|@translate}</h2>
<img src="{$TN_SRC}" alt="{'thumbnail'|@translate}" class="thumbnail" />