aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-11 20:23:30 +0000
committerrub <rub@piwigo.org>2008-10-11 20:23:30 +0000
commitb8f1c3753080886617cc4f3fb52935c483fe7822 (patch)
tree25342e61b8b8a8a88cfe12ae4402fc2131da25d8
parent9772b96f9a59e73ff9c97e6809424397f54201eb (diff)
jQuery Datepicker:
Readd resize for list of categories Use include for double select list Merge trunk 2717:2718 into branch 2.0 git-svn-id: http://piwigo.org/svn/branches/2.0@2719 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/template/goto/cat_modify.tpl1
-rw-r--r--admin/template/goto/cat_move.tpl2
-rw-r--r--admin/template/goto/double_select.tpl17
-rw-r--r--admin/template/goto/include/dbselect.inc.tpl23
-rw-r--r--admin/template/goto/include/resize.inc.tpl23
-rw-r--r--admin/template/goto/picture_modify.tpl1
-rw-r--r--admin/template/goto/site_update.tpl2
-rw-r--r--template/yoga/include/resize.inc.tpl23
-rw-r--r--template/yoga/search.tpl8
9 files changed, 83 insertions, 17 deletions
diff --git a/admin/template/goto/cat_modify.tpl b/admin/template/goto/cat_modify.tpl
index 4648b92d8..54fccd687 100644
--- a/admin/template/goto/cat_modify.tpl
+++ b/admin/template/goto/cat_modify.tpl
@@ -1,6 +1,7 @@
{* $Id$ *}
{include file='include/autosize.inc.tpl'}
+{include file='include/resize.inc.tpl'}
<div class="titrePage">
<h2>{'title_edit_cat'|@translate}</h2>
diff --git a/admin/template/goto/cat_move.tpl b/admin/template/goto/cat_move.tpl
index 2ca670e20..a2735aa91 100644
--- a/admin/template/goto/cat_move.tpl
+++ b/admin/template/goto/cat_move.tpl
@@ -1,5 +1,7 @@
{* $Id$ *}
+{include file='include/resize.inc.tpl'}
+
<div class="titrePage">
<h2>{'Move categories'|@translate}</h2>
</div>
diff --git a/admin/template/goto/double_select.tpl b/admin/template/goto/double_select.tpl
index 62930aeb1..2be698b0d 100644
--- a/admin/template/goto/double_select.tpl
+++ b/admin/template/goto/double_select.tpl
@@ -1,21 +1,6 @@
{* $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"}
-<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>
+{include file='include/dbselect.inc.tpl'}
<table class="doubleSelect">
<tr>
diff --git a/admin/template/goto/include/dbselect.inc.tpl b/admin/template/goto/include/dbselect.inc.tpl
new file mode 100644
index 000000000..cab472460
--- /dev/null
+++ b/admin/template/goto/include/dbselect.inc.tpl
@@ -0,0 +1,23 @@
+{* $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.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
+
+{* Resize possible *}
+{literal}
+<script type="text/javascript">
+ jQuery().ready(function(){
+ // Resize possible for double select list
+ jQuery(".doubleSelect select.categoryList").resizable({
+ handles: "w,e",
+ animate: true,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ preventDefault: true,
+ preserveCursor: true,
+ autoHide: true,
+ ghost: true
+ });
+ });
+</script>
+{/literal}
diff --git a/admin/template/goto/include/resize.inc.tpl b/admin/template/goto/include/resize.inc.tpl
new file mode 100644
index 000000000..9bd89325f
--- /dev/null
+++ b/admin/template/goto/include/resize.inc.tpl
@@ -0,0 +1,23 @@
+{* $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.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
+
+{* Resize possible *}
+{literal}
+<script type="text/javascript">
+ jQuery().ready(function(){
+ // Resize possible for list
+ jQuery(".categoryList").resizable({
+ handles: "all",
+ animate: true,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ preventDefault: true,
+ preserveCursor: true,
+ autoHide: true,
+ ghost: true
+ });
+ });
+</script>
+{/literal}
diff --git a/admin/template/goto/picture_modify.tpl b/admin/template/goto/picture_modify.tpl
index a35f07436..37a5fc5f9 100644
--- a/admin/template/goto/picture_modify.tpl
+++ b/admin/template/goto/picture_modify.tpl
@@ -1,6 +1,7 @@
{* $Id$ *}
{include file='include/autosize.inc.tpl'}
+{include file='include/dbselect.inc.tpl'}
{include file='include/datepicker.inc.tpl'}
{literal}
diff --git a/admin/template/goto/site_update.tpl b/admin/template/goto/site_update.tpl
index ad4f99e0f..54429c1b6 100644
--- a/admin/template/goto/site_update.tpl
+++ b/admin/template/goto/site_update.tpl
@@ -1,5 +1,7 @@
{* $Id$ *}
+{include file='include/resize.inc.tpl'}
+
<div class="titrePage">
<h2>{'title_update'|@translate}: <a href="{$SITE_URL}">{$SITE_URL}</a></h2>
</div>
diff --git a/template/yoga/include/resize.inc.tpl b/template/yoga/include/resize.inc.tpl
new file mode 100644
index 000000000..9bd89325f
--- /dev/null
+++ b/template/yoga/include/resize.inc.tpl
@@ -0,0 +1,23 @@
+{* $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.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
+
+{* Resize possible *}
+{literal}
+<script type="text/javascript">
+ jQuery().ready(function(){
+ // Resize possible for list
+ jQuery(".categoryList").resizable({
+ handles: "all",
+ animate: true,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ preventDefault: true,
+ preserveCursor: true,
+ autoHide: true,
+ ghost: true
+ });
+ });
+</script>
+{/literal}
diff --git a/template/yoga/search.tpl b/template/yoga/search.tpl
index 8562cac3d..154954444 100644
--- a/template/yoga/search.tpl
+++ b/template/yoga/search.tpl
@@ -1,6 +1,12 @@
{* $Id$ *}
-{* Example of datepicker
+{* Example of resizeable *}
+{*
+{include file='include/resize.inc.tpl'}
+*}
+
+{* Example of datepicker *}
+{*
{include file='include/datepicker.inc.tpl'}
{literal}