DataTables Editable plugin - multiple rows delete func
DataTables Editable plugin - multiple rows delete func
As i can see now in dataTables.editable.js :
[code]function _fnDeleteRow(id, sDeleteURL) {
var sURL = sDeleteURL;
if (sDeleteURL == null)
sURL = properties.sDeleteURL;
properties.fnStartProcessingMode();
var data = $.extend(properties.oDeleteParameters, { "id": id });
$.ajax({ 'url': sURL,
'type': properties.sDeleteHttpMethod,
'data': data,
"success": _fnOnRowDeleted,
"dataType": "text",
"error": function (response) {
properties.fnEndProcessingMode();
properties.fnShowError(response.responseText, "delete");
properties.fnOnDeleted("failure");
}
}[/code]
Is there a way to make work for multiple ids?
[code]function _fnDeleteRow(id, sDeleteURL) {
var sURL = sDeleteURL;
if (sDeleteURL == null)
sURL = properties.sDeleteURL;
properties.fnStartProcessingMode();
var data = $.extend(properties.oDeleteParameters, { "id": id });
$.ajax({ 'url': sURL,
'type': properties.sDeleteHttpMethod,
'data': data,
"success": _fnOnRowDeleted,
"dataType": "text",
"error": function (response) {
properties.fnEndProcessingMode();
properties.fnShowError(response.responseText, "delete");
properties.fnOnDeleted("failure");
}
}[/code]
Is there a way to make work for multiple ids?
This discussion has been closed.
Replies
Add inside jquery.dataTables.editable.js :
[code]
function fnGetSelected( oTableLocal )
{
var aReturn = new Array();
var aTrs = oTableLocal.fnGetNodes();
for ( var i=0 ; i