Changeset 2598


Ignore:
Timestamp:
Sep 26, 2008, 10:18:34 PM (16 years ago)
Author:
rub
Message:

jQuery use.
All admin textarea are resizable.

Location:
trunk/admin/template/goto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/footer.tpl

    r2526 r2598  
    11{* $Id$ *}
    22{*
    3 
    4 
    53          Warning : This is the admin pages footer only
    64          don't be confusing with the public page footer
    7 
    85*}
    96<div id="copyright">
     
    3936{/if}
    4037</div> <!-- the_page -->
     38
     39<!-- Begin of JS -->
     40{literal}
     41<script type="text/javascript">
     42  // All admin textarea are resizable
     43  jQuery().ready(function(){
     44    jQuery("TEXTAREA").resizable({
     45      handles: "all",
     46      animate: true,
     47      animateDuration: "slow",
     48      animateEasing: "swing",
     49      preventDefault: true,
     50      preserveCursor: true,
     51      autoHide: true,
     52      ghost: true
     53    });
     54  });
     55</script>
     56{/literal}
     57<!-- End of JS -->
     58
    4159</body>
    4260</html>
  • trunk/admin/template/goto/header.tpl

    r2526 r2598  
    2424<link rel="stylesheet" type="text/css" href="{$ROOT_URL}admin/template/{$themeconf.template}/theme/{$themeconf.theme}/theme.css">
    2525{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js" now=1} {*jQuery is always available by default*}
     26{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
     27{known_script id="jquery.ui.sortable" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.resizable.packed.js"}
    2628{$themeconf.local_head}
    2729<script type="text/javascript" src="{$ROOT_URL}template-common/scripts.js"></script>
Note: See TracChangeset for help on using the changeset viewer.