Changeset 3916
- Timestamp:
- 06/29/08 11:27:10 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
batchmodifyplugin/0.11/batchmod/templates/batchmod.html
r2772 r3916 68 68 </fieldset> 69 69 <script type="text/javascript"> 70 $(document).ready(function(){ 71 <!-- 72 $("//table.listing//tr//td[@class=id]").each( 70 jQuery(document).ready(function($){ 71 $("table.listing tr td.id").each( 73 72 function() { 74 73 tId=$(this).text().substring(1); … … 76 75 } 77 76 ) 78 $(" //table.listing//tr//th[@class=id]").each(77 $("table.listing tr th.id").each( 79 78 function() { 80 79 $(this).before('<th class="bmod_selector"><input type="checkbox" name="bmod_toggleGroup" /></th>'); 81 80 } 82 81 ) 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); 85 84 }) 86 -->87 85 <py:for each="field in fields"> 88 $("input[@id=bmod_flag_${field.name}]").c hange(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);} ) 89 87 </py:for> 90 $("input#bmod_flag_comment").c hange(function() {enableControl("bmod_value_comment",this.checked);} )88 $("input#bmod_flag_comment").click(function() {enableControl("bmod_value_comment",this.checked);} ) 91 89 $("form#batchmod-form").submit(function() { 92 90 var selectedTix=[];
