Error after remove action
Error after remove action
enzo40
Posts: 1Questions: 1Answers: 0
Hi everyone,
I am using DataTables 1.10, Editor 1.3.2, and server side data (with C# ASP MVC4).
DataTables works great, after a deleting action a good response is sent from the server (Json("")) but Editor doesn't close form confirmation (lightbox), so I close it manually.
But then any creation or update action are impossible. Inline editing or editing/creating forms appear but validation doesn't work anymore and no parameters are sent to the server.
var editor = new $.fn.dataTable.Editor({
ajax: {
create: {
type: "POST",
url: createAction,
},
edit: {
type: 'POST',
url: editAction,
},
remove: {
type: 'POST',
url: deleteAction,
contentType: 'application/json; charset=utf-8',
data: function(data) {
return JSON.stringify(data);,
},
}
},
table: "#test",
events: {
"onPreSubmit": function(json) {
$.each(json.data, function(index, val) {
json["data." + index] = val;
});
delete json.data;
},
},
This discussion has been closed.