eocampo5924 / jquery-datatables-editable

Automatically exported from code.google.com/p/jquery-datatables-editable
0 stars 0 forks source link

fnOnEdited is passed status string rather than result from server #105

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In Issue #100, you mentioned that the fnOnEdited function is passed the 
response object from the server. The method signature is as you stated:

function _fnOnEdited(result, sOldValue, sNewValue, iRowIndex, iColumnIndex, 
iRealColumnIndex)

However, in the applyEditable callback function, fnOnEdited is passed:

status, sOldValue, sNewCellDisplayValue, aPos[0], aPos[1], aPos[2]

with the status being set previously in applyEditable to either 'success' or 
'failure'. I would like to use the response object returned by the server to 
update the row containing the edited cell. While I could calculate the values 
based on the updated value of the cell, these calculations already occur server 
side and I'd rather not duplicate that code.

Original issue reported on code.google.com by dogenp...@gmail.com on 21 Mar 2012 at 3:57

GoogleCodeExporter commented 9 years ago
BTW, I am using the latest version from SVN (2.3.1)

Original comment by dogenp...@gmail.com on 21 Mar 2012 at 3:57

GoogleCodeExporter commented 9 years ago
While this issue is under consideration, I've updated the call to _fnOnEdited 
to pass sValue instead of status. This seems to work without any bad side 
effects so far.

Original comment by dogenp...@gmail.com on 26 Mar 2012 at 6:16