Quantcast
Channel: DataTables 1.10 — DataTables forums
Viewing all articles
Browse latest Browse all 2364

Random errors in editor initialization after DT/Editor upgrade

$
0
0

We're currently updating from DT 1.0.15 -> 1.0.21, Editor 1.6.2 -> 1.9.4

We receive random errors during the initialization of the editor.

One is

dataTables.editor.js:4509 Uncaught TypeError: Cannot read property 'nTable' of undefined

        $(document)
            .on('init.dt.dte' + this.s.unique, function(e, settings, json) {
                // Attempt to attach to a DataTable automatically when the table is
                // initialised
                if (that.s.table && settings.nTable === $(that.s.table).get(0)) {
                    settings._editor = that;
                }
            })

and this one

dt.js:135 Uncaught TypeError: $.fn.dataTable.Editor is not a constructor

    if (typeof EDIT_FORM !== 'undefined') {
        console.log('Initalizing Editor EDITOR_FORM')
        console.log(EDIT_FORM);
        var edit_editor = new $.fn.dataTable.Editor( {
            ajax:  '@@kataster-update',
            table: '#listing',
            i18n: language_editor,
            fields: EDIT_FORM
        })
    }

This has not happened with the old versions...any idea?


Viewing all articles
Browse latest Browse all 2364

Trending Articles