Put resizable and growfield scripts on each page where is needed.

git-svn-id: http://piwigo.org/svn/trunk@2614 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
patdenice 2008-09-27 21:00:12 +00:00
commit d61c255341
9 changed files with 63 additions and 33 deletions

View file

@ -1,5 +1,4 @@
{* $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.accordion" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.accordion.packed.js" }

View file

@ -1,4 +1,14 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
<div class="titrePage">
<h2>{'title_edit_cat'|@translate}</h2>
</div>

View file

@ -1,4 +1,14 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
<div class="titrePage">
<h2>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2>
</div>

View file

@ -2,6 +2,21 @@
{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>
<table class="doubleSelect">
<tr>
<td>
@ -21,20 +36,3 @@
</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}

View file

@ -1,4 +1,13 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
<h2>{'Batch management'|@translate}</h2>

View file

@ -36,16 +36,5 @@
{/if}
</div> <!-- the_page -->
{literal}
<script type="text/javascript">
jQuery().ready(function(){
// Auto size for all text area
jQuery("TEXTAREA").growfield({
animate: false
});
});
</script>
{/literal}
</body>
</html>

View file

@ -1,7 +1,6 @@
{* $Id$ *}
{*
Warning : This is the admin pages header only
don't confuse with the public page header
@ -22,9 +21,6 @@
<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.resizable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
{$themeconf.local_head}
<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
<!--[if lt IE 7]>

View file

@ -1,4 +1,13 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
<div class="titrePage">
<h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2>

View file

@ -1,4 +1,14 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
<h2>{'title_picmod'|@translate}</h2>
<img src="{$TN_SRC}" alt="{'thumbnail'|@translate}" class="thumbnail" />