diff --git a/webui/view/javascript/piler-in.js b/webui/view/javascript/piler-in.js index 243c58b8..44d26773 100644 --- a/webui/view/javascript/piler-in.js +++ b/webui/view/javascript/piler-in.js @@ -325,17 +325,25 @@ var Piler = * bulk toggle all the checkboxes for the result set */ - toggle_bulk_check:function() + toggle_bulk_check:function(i) { Piler.log("[toggle_bulk_check]", Piler.Messages.length); - $('#bulkcheck').prop('checked') ? bulkcheck = 1 : bulkcheck = 0; + $('#bulkcheck' + i).prop('checked') ? bulkcheck = 1 : bulkcheck = 0; Piler.log("[toggle_bulk_check], bulkcheck=", bulkcheck); for(i=0; i - checked="checked" class="restorebox" onclick="Piler.toggle_bulk_check();" /> + checked="checked" class="restorebox" onclick="Piler.toggle_bulk_check('');" />   @@ -67,7 +67,7 @@ - checked="checked" class="restorebox" onclick="Piler.toggle_bulk_check();" /> + checked="checked" class="restorebox" onclick="Piler.toggle_bulk_check('2');" />   diff --git a/webui/view/theme/mobile/templates/search/helper.tpl b/webui/view/theme/mobile/templates/search/helper.tpl index bd9da664..926b192d 100644 --- a/webui/view/theme/mobile/templates/search/helper.tpl +++ b/webui/view/theme/mobile/templates/search/helper.tpl @@ -8,7 +8,7 @@ - checked="checked" onclick="Piler.toggle_bulk_check();" /> + checked="checked" onclick="Piler.toggle_bulk_check('');" /> aaa