Editable: limit array columns

related? http://stackoverflow.com/q/24947995/145346
This commit is contained in:
Mottie 2014-07-25 07:50:36 -05:00
parent b92952121b
commit 294f377e4f

View File

@ -30,7 +30,9 @@
}
} else if ($.isArray(wo.editable_columns)) {
$.each(wo.editable_columns, function(i, col){
cols.push('td:nth-child(' + (col + 1) + ')');
if ( col < c.columns ) {
cols.push('td:nth-child(' + (col + 1) + ')');
}
});
}
// IE does not allow making TR/TH/TD cells directly editable (issue #404)