Getting the
TypeError: a is undefined
...rCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e...
When I try to use remove() standalone:
$('#remove_list').on( 'click', function () {
editor.buttons({
label: "Remove",
fn: function () {
this.submit( function () {
load_dropdown("#rule_list", "/json/get_domainlists/");
});
}
})
.remove($("#rule_list").val());
} );
Here's how I initialize the editor:
var editor = new $.fn.dataTable.Editor( {
ajax: "{% url 'json_editor_domainlist' %}",
fields: [ {
label: "List Name:",
name: "list_name"
}, {
label: "Note:",
name: "list_note"
}, {
label: "ID",
name: "list_id"
}
]
} );
I need to pass an ID to the server for removal. I'll also need it for edit() also. How do I do this?