DataTables Editable plugin - multiple rows delete func

DataTables Editable plugin - multiple rows delete func

jurikobejurikobe Posts: 7Questions: 0Answers: 0
edited March 2012 in General
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?

Replies

  • jurikobejurikobe Posts: 7Questions: 0Answers: 0
    Solved.
    Add inside jquery.dataTables.editable.js :
    [code]
    function fnGetSelected( oTableLocal )
    {
    var aReturn = new Array();
    var aTrs = oTableLocal.fnGetNodes();

    for ( var i=0 ; i
This discussion has been closed.