Changeset 3916

Show
Ignore:
Timestamp:
06/29/08 11:27:10 (5 months ago)
Author:
dgynn
Message:

BatchModifyPlugin: Updated jquery code to work in no-conflict mode

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • batchmodifyplugin/0.11/batchmod/templates/batchmod.html

    r2772 r3916  
    6868</fieldset> 
    6969<script type="text/javascript"> 
    70 $(document).ready(function(){ 
    71 <!-- 
    72   $("//table.listing//tr//td[@class=id]").each( 
     70jQuery(document).ready(function($){ 
     71  $("table.listing tr td.id").each( 
    7372    function() { 
    7473      tId=$(this).text().substring(1);  
     
    7675    }   
    7776  )  
    78   $("//table.listing//tr//th[@class=id]").each( 
     77  $("table.listing tr th.id").each( 
    7978    function() {  
    8079      $(this).before('<th class="bmod_selector"><input type="checkbox" name="bmod_toggleGroup" /></th>'); 
    8180    }   
    8281  )  
    83   $("input[@name=bmod_toggleGroup]").change(function() {  
    84     $("../../../..//input[@type=checkbox]",this).attr("checked",this.checked); 
     82  $("input[@name='bmod_toggleGroup']").click(function() {  
     83    $("tr td input.bmod_selector",$(this).parents("table.listing")).attr("checked",this.checked); 
    8584  }) 
    86 --> 
    8785  <py:for each="field in fields"> 
    88     $("input[@id=bmod_flag_${field.name}]").change(function() { $("*[@name=bmod_value_${field.name}]").enable(this.checked);} ) 
     86    $("input[@id=bmod_flag_${field.name}]").click(function() { $("*[@name=bmod_value_${field.name}]").enable(this.checked);} ) 
    8987  </py:for> 
    90   $("input#bmod_flag_comment").change(function() {enableControl("bmod_value_comment",this.checked);} ) 
     88  $("input#bmod_flag_comment").click(function() {enableControl("bmod_value_comment",this.checked);} ) 
    9189  $("form#batchmod-form").submit(function() { 
    9290    var selectedTix=[];