jQuery use.

All admin textarea are resizable.

git-svn-id: http://piwigo.org/svn/trunk@2598 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub 2008-09-26 20:18:34 +00:00
parent 097f30ce77
commit 7dd09aa4f6
2 changed files with 23 additions and 3 deletions

View file

@ -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>

View file

@ -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]>