mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
fixed the lower bulk checkbox in the default theme
This commit is contained in:
@ -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<Piler.Messages.length; i++) {
|
||||
bulkcheck == 1 ? $("#r_" + Piler.Messages[i]).prop('checked', true) : $("#r_" + Piler.Messages[i]).prop('checked', false);
|
||||
}
|
||||
|
||||
if(bulkcheck == 1) {
|
||||
$("#bulkcheck").prop('checked', true);
|
||||
$("#bulkcheck2").prop('checked', true);
|
||||
} else {
|
||||
$("#bulkcheck").prop('checked', false);
|
||||
$("#bulkcheck2").prop('checked', false);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user