1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00

Fix initCheckAllboxes for a given context

This commit is contained in:
Daniel Molina 2013-06-24 19:57:25 +02:00
parent 0c5beb5da1
commit 71ee8bba1e

View File

@ -396,8 +396,8 @@ function prettyPrintRowJSON(field,value,padding,weight, border_bottom,padding_to
function initCheckAllBoxes(datatable, custom_context){
//small css hack
$('input.check_all').css({"border":"2px"});
$('input.check_all').live("change",function(){
$('input.check_all', datatable).css({"border":"2px"});
$('input.check_all', datatable).live("change",function(){
var table = $(this).closest('.dataTables_wrapper');
var checked = $(this).attr('checked');
if (checked) { //check all