Changeset 2653


Ignore:
Timestamp:
Oct 4, 2008, 3:54:54 PM (16 years ago)
Author:
patdenice
Message:
  • 883: category status wasn't saved.
  • 870, 877, 878: growfield plugins send wrong value when empty textarea. Now use another plugin for autogrow.
Location:
trunk
Files:
1 added
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/cat_modify.php

    r2628 r2653  
    101101    set_cat_visible(array($_GET['cat_id']), $_POST['visible']);
    102102  }
    103   if ($cat_info['status'] != get_boolean( $_POST['status'] ) )
     103  if ($cat_info['status'] != $_POST['status'] )
    104104  {
    105105    set_cat_status(array($_GET['cat_id']), $_POST['status']);
  • trunk/admin/template/goto/include/autosize.inc.tpl

    r2641 r2653  
    11{* $Id$ *}
    22{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
    3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
    4 {known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
     3{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.autogrow-textarea.js"}
    54
    65{* Auto size and auto grow textarea *}
     
    87<script type="text/javascript">
    98  jQuery().ready(function(){
     9    jQuery('textarea').css('overflow-y', 'hidden');
    1010    // Auto size and auto grow for all text area
    11     jQuery("TEXTAREA").growfield({
    12       animate: false
    13     });
     11    jQuery('textarea').autogrow();
    1412  });
    1513</script>
Note: See TracChangeset for help on using the changeset viewer.