aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/double_select.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-09-26 20:33:23 +0000
committervdigital <vdigital@piwigo.org>2008-09-26 20:33:23 +0000
commit1f4d05d280638c310483bef0f079cb4b2b2a7d54 (patch)
tree2b2a824d080ef282d2949b5163eafdf2260049cd /admin/template/goto/double_select.tpl
parent07a97a9d13dc300fc3429dfbe7df8548c0998454 (diff)
Bug 532 is solved: doubleSelect are jQuery resizable (based on a rub idea).
git-svn-id: http://piwigo.org/svn/trunk@2600 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/template/goto/double_select.tpl')
-rw-r--r--admin/template/goto/double_select.tpl24
1 files changed, 23 insertions, 1 deletions
diff --git a/admin/template/goto/double_select.tpl b/admin/template/goto/double_select.tpl
index ab01b9b9b..3b287120f 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.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js" }
+
<table class="doubleSelect">
<tr>
<td>
@@ -17,4 +20,23 @@
<p><input class="submit" type="submit" value="&laquo;" name="trueify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
</td>
</tr>
-</table> \ No newline at end of file
+</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