Ticket #2312: batchmod-jquery1.2.patch
| File batchmod-jquery1.2.patch, 2.1 kB (added by dgynn, 10 months ago) |
|---|
-
vendor/batchmodifyplugin/batchmod/templates/batchmod.html
old new 67 67 <input py:if="req.args['groupdesc']" type="hidden" name="groupdesc" value="${req.args['groupdesc']}" /> 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); 75 74 $(this).before('<td><input type="checkbox" name="selectedTicket" class="bmod_selector" value="'+tId+'"/></td>'); 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=[]; 93 91 $("input[@name=selectedTicket]:checked").each( function(){ selectedTix.push(this.value);} );
