mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-28 14:50:08 +03:00
Bug #4301: After updating an element in the datatable update the checkbox input
This commit is contained in:
parent
449313f893
commit
a3dbf0ab56
@ -502,8 +502,13 @@ define(function(require) {
|
||||
|
||||
$.each(that.dataTable.fnGetData(), function(index, aData) {
|
||||
if (aData[that.selectOptions.id_index] === elementId) {
|
||||
element[0] = aData[0];
|
||||
var nodes = that.dataTable.fnGetNodes();
|
||||
var checkId = '#' + that.resource.toLowerCase() + '_' + elementId;
|
||||
var checkVal = $(checkId, nodes).prop('checked');
|
||||
that.dataTable.fnUpdate(element, index, undefined, false);
|
||||
if (checkVal) {
|
||||
$(checkId, nodes).prop('checked', checkVal);
|
||||
}
|
||||
that.recountCheckboxes();
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user