Changeset 12892


Ignore:
Timestamp:
01/15/12 16:36:19 (8 years ago)
Author:
mistic100
Message:

feature:2549 fix javascript (hide/show didn't work correctly)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/themes/default/template/configuration.tpl

    r12887 r12892  
    254254</fieldset> 
    255255{footer_script}{literal} 
    256 $(document).ready(function(){ 
    257   $("#activate_comments").change(function(){ 
    258     if ($(this).attr('checked')) { 
    259       $("#comments_param_warp").css('display', ''); 
     256jQuery(document).ready(function(){ 
     257  jQuery("#activate_comments").change(function(){ 
     258    if ($(this).is(':checked')) { 
     259      jQuery("#comments_param_warp").show(); 
    260260    } else { 
    261       $("#comments_param_warp").css('display', 'none'); 
     261      jQuery("#comments_param_warp").hide(); 
    262262    } 
    263263  }); 
Note: See TracChangeset for help on using the changeset viewer.