Ignore:
Timestamp:
Dec 4, 2010, 9:32:44 PM (13 years ago)
Author:
rvelices
Message:

trunk admin theme goes with combine_script instead of old style known_script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/include/autosize.inc.tpl

    r5123 r7995  
    1 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    2 {known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.autogrow-textarea.js"}
    3 
     1{combine_script id='jquery' load='async' path='themes/default/js/jquery.packed.js'}
     2{combine_script id='jquery.autogrow' load='async' require='jquery' path='themes/default/js/plugins/jquery.autogrow-textarea.js'}
    43{* Auto size and auto grow textarea *}
    5 {literal}
    6 <script type="text/javascript">
    7   jQuery().ready(function(){
    8     jQuery('textarea').css('overflow-y', 'hidden');
    9     // Auto size and auto grow for all text area
    10     jQuery('textarea').autogrow();
    11   });
    12 </script>
    13 {/literal}
     4{footer_script require='jquery.autogrow'}{literal}
     5jQuery(document).ready(function(){
     6        jQuery('textarea').css('overflow-y', 'hidden');
     7        // Auto size and auto grow for all text area
     8        jQuery('textarea').autogrow();
     9});
     10{/literal}{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.