Uncaught TypeError on Submit onblur using inline editor
Uncaught TypeError on Submit onblur using inline editor
The error shows as below,
dataTables.editor.min.js:10 Uncaught TypeError: extender is not a function
at Object.<anonymous> (dataTables.editor.min.js:10)
at Function.each (jquery-1.10.2.min.js:4)
at Editor.(anonymous function).(anonymous function) [as _submitTable] (/projectName/resource/js/dataTables.editor.min.js:10:129324)
at Editor.(anonymous function).(anonymous function) [as _submit] (projectName/resource/js/dataTables.editor.min.js:10:128077)
at dataTables.editor.min.js:10
at Editor.(anonymous function).(anonymous function) [as _event] (projectName/resource/js/dataTables.editor.min.js:10:114496)
at send (dataTables.editor.min.js:10)
at Editor.(anonymous function).(anonymous function) [as submit] (projectNameresource/js/dataTables.editor.min.js:10:88445)
at Editor.(anonymous function).(anonymous function) [as _blur] (projectName/resource/js/dataTables.editor.min.js:10:108311)
at Editor.(anonymous function).(anonymous function) [as blur] (projectName/resource/js/dataTables.editor.min.js:10:64486).
Editor initialize as,
editor = new $.fn.dataTable.Editor({
table: "#ratesDataTable",
idSrc: 'rateRowId',
fields: [ {
name: "electionId"
}]});
Activate inline editing as,
$('#rateDataTable').on( 'click', 'tbody td:not(:first-child)', function (e) {
editor.inline( this, {
onBlur: 'submit'
} );
} );
Thanks in advance.
Answers
Closing as duplicate of https://datatables.net/forums/discussion/52597/i-got-an-error-while-using-submit-onblur-by-inline-editor#latest