aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-09-26 21:47:46 +0000
committerrub <rub@piwigo.org>2008-09-26 21:47:46 +0000
commitadb799fc4606e91a712adc9c914dd281b3b397b4 (patch)
treead7eff35c06fa76c27a939e88ec929f1357377e3 /admin
parent3e96d7816bea5eb242e59a3d353641c8eef91631 (diff)
jQuery use.
All admin categoryList are resizable. All admin teataera are autogrow. On call for all resize application. git-svn-id: http://piwigo.org/svn/trunk@2603 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r--admin/template/goto/double_select.tpl19
-rw-r--r--admin/template/goto/footer.tpl8
-rw-r--r--admin/template/goto/header.tpl1
3 files changed, 6 insertions, 22 deletions
diff --git a/admin/template/goto/double_select.tpl b/admin/template/goto/double_select.tpl
index 43414505c..aeed8500a 100644
--- a/admin/template/goto/double_select.tpl
+++ b/admin/template/goto/double_select.tpl
@@ -18,22 +18,3 @@
</td>
</tr>
</table>
-
-{literal}
-<script type="text/javascript">
-jQuery().ready(function(){
- jQuery(".doubleSelect SELECT.categoryList").resizable({
- handles: "w,e",
- knobHandles: false,
- 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/footer.tpl b/admin/template/goto/footer.tpl
index 8e62319ed..0bee2b989 100644
--- a/admin/template/goto/footer.tpl
+++ b/admin/template/goto/footer.tpl
@@ -39,10 +39,12 @@
<!-- Begin of JS -->
{literal}
<script type="text/javascript">
- // All admin textarea are resizable
jQuery().ready(function(){
- jQuery("TEXTAREA, .categoryList").resizable({
- handles: "all",
+ // Auto size for all text area
+ jQuery("TEXTAREA").growfield();
+ // All admin categoryList are resizable
+ jQuery(".doubleSelect, .categoryList").resizable({
+ knobHandles: false,
animate: true,
animateDuration: "slow",
animateEasing: "swing",
diff --git a/admin/template/goto/header.tpl b/admin/template/goto/header.tpl
index 288be3ec8..3e8d90a45 100644
--- a/admin/template/goto/header.tpl
+++ b/admin/template/goto/header.tpl
@@ -25,6 +25,7 @@
{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/growfield/jquery.growfield.js"}
{$themeconf.local_head}
<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>