aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-09-26 22:52:29 +0000
committervdigital <vdigital@piwigo.org>2008-09-26 22:52:29 +0000
commit1354e72c9a653bc6f88b33d431db08ea59eecfe2 (patch)
tree19fec668d5486cc5792f3504904789b005e14279
parentadb799fc4606e91a712adc9c914dd281b3b397b4 (diff)
Restored in double_select.tpl: doubleSelect are jQuery resizable (based on a rub idea).
git-svn-id: http://piwigo.org/svn/trunk@2604 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/template/goto/double_select.tpl20
-rw-r--r--admin/template/goto/footer.tpl11
2 files changed, 20 insertions, 11 deletions
diff --git a/admin/template/goto/double_select.tpl b/admin/template/goto/double_select.tpl
index aeed8500a..8dc7bfc66 100644
--- a/admin/template/goto/double_select.tpl
+++ b/admin/template/goto/double_select.tpl
@@ -1,4 +1,7 @@
{* $Id$ *}
+{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"}
+
<table class="doubleSelect">
<tr>
<td>
@@ -18,3 +21,20 @@
</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/footer.tpl b/admin/template/goto/footer.tpl
index 0bee2b989..29691b701 100644
--- a/admin/template/goto/footer.tpl
+++ b/admin/template/goto/footer.tpl
@@ -42,17 +42,6 @@
jQuery().ready(function(){
// 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",
- preventDefault: true,
- preserveCursor: true,
- autoHide: true,
- ghost: true
- });
});
</script>
{/literal}