aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-09-26 20:18:34 +0000
committerrub <rub@piwigo.org>2008-09-26 20:18:34 +0000
commit7dd09aa4f68ff923a2aa965650c10e38788209ce (patch)
tree656431f6f10e8f00c43c670f3f64dd04e129c931
parent097f30ce7719fd0cb8144fc515de15a01b3ddb24 (diff)
jQuery use.
All admin textarea are resizable. git-svn-id: http://piwigo.org/svn/trunk@2598 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--admin/template/goto/footer.tpl24
-rw-r--r--admin/template/goto/header.tpl2
2 files changed, 23 insertions, 3 deletions
diff --git a/admin/template/goto/footer.tpl b/admin/template/goto/footer.tpl
index 0ae5dde2c..dbfca19e5 100644
--- a/admin/template/goto/footer.tpl
+++ b/admin/template/goto/footer.tpl
@@ -1,10 +1,7 @@
{* $Id$ *}
{*
-
-
Warning : This is the admin pages footer only
don't be confusing with the public page footer
-
*}
<div id="copyright">
<a name="EoP"></a> <!-- End of ADMIN Page -->
@@ -38,5 +35,26 @@
</div>
{/if}
</div> <!-- the_page -->
+
+<!-- Begin of JS -->
+{literal}
+<script type="text/javascript">
+ // All admin textarea are resizable
+ jQuery().ready(function(){
+ jQuery("TEXTAREA").resizable({
+ handles: "all",
+ animate: true,
+ animateDuration: "slow",
+ animateEasing: "swing",
+ preventDefault: true,
+ preserveCursor: true,
+ autoHide: true,
+ ghost: true
+ });
+ });
+</script>
+{/literal}
+<!-- End of JS -->
+
</body>
</html> \ No newline at end of file
diff --git a/admin/template/goto/header.tpl b/admin/template/goto/header.tpl
index 607f31529..08440e43c 100644
--- a/admin/template/goto/header.tpl
+++ b/admin/template/goto/header.tpl
@@ -23,6 +23,8 @@
<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.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
{$themeconf.local_head}
<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>