mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-05 13:02:48 +02:00
jQuery autosize:
Prepare public section in order to use autosize on version after butterfly Merge trunk 2720:2721 into branch 2.0 git-svn-id: http://piwigo.org/svn/branches/2.0@2723 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
14
template/yoga/include/autosize.inc.tpl
Normal file
14
template/yoga/include/autosize.inc.tpl
Normal file
@@ -0,0 +1,14 @@
|
||||
{* $Id$ *}
|
||||
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
|
||||
{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.autogrow-textarea.js"}
|
||||
|
||||
{* Auto size and auto grow textarea *}
|
||||
{literal}
|
||||
<script type="text/javascript">
|
||||
jQuery().ready(function(){
|
||||
jQuery('textarea').css('overflow-y', 'hidden');
|
||||
// Auto size and auto grow for all text area
|
||||
jQuery('textarea').autogrow();
|
||||
});
|
||||
</script>
|
||||
{/literal}
|
||||
@@ -1,4 +1,10 @@
|
||||
{* $Id$ *}
|
||||
|
||||
{* Example of resizeable *}
|
||||
{*
|
||||
{include file='include/autosize.inc.tpl'}
|
||||
*}
|
||||
|
||||
{if isset($errors)}
|
||||
<div class="errors">
|
||||
<ul>
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
{* $Id$ *}
|
||||
|
||||
{* Example of resizeable *}
|
||||
{*
|
||||
{include file='include/autosize.inc.tpl'}
|
||||
*}
|
||||
|
||||
<div id="content" class="content">
|
||||
|
||||
<div class="titrePage">
|
||||
|
||||
Reference in New Issue
Block a user