Editor 1.2.4 suddently can not work

Editor 1.2.4 suddently can not work

wwwwww Posts: 4Questions: 1Answers: 0

the version of Editor 1.2.4 suddently can not work today. There is an error saying "TypeError: $.fn.DataTable.Editor is undefined"
i had never this error before. please help . why this occured?

Answers

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    You'll have to show your code.

  • wwwwww Posts: 4Questions: 1Answers: 0

    it worked before today. the code ran well . is it related to license required ?
    $.fn.DataTable.Editor.fieldTypes.autocomplete_text = $.extend( true, {}, $.fn.DataTable.Editor.models.fieldType, {
    "create": function ( conf ) {
    var that = this;

        conf._enabled = true;
    
        var fieldname = conf['name'];
        var fieldid = conf['id'];       
        var options = conf['options'].source;
    
        conf._input = $('<input id="'+fieldid+'" class= "editor-input" name="'+fieldname+'"/>')[0];
    
        $(  conf._input ).autocomplete({ source: options});
    
        return conf._input;
    },
    
    "get": function ( conf ) {
        if ( ! conf._enabled ) {           
            return;        }        
        return $(conf._input).val();
    },
    
    "set": function ( conf, val ) {
        if ( ! conf._enabled ) {
            return;
        }
        $(conf._input).val(val);
    },
    
    "enable": function ( conf ) {
        conf._enabled = true;
        $(conf._input).removeClass( 'disabled' );
    
    },
    
    "disable": function ( conf ) {
        conf._enabled = false;
        $(conf._input).addClass( 'disabled' );
    }
    

    } );//end

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    is it related to license required ?

    If you were on a free trial, and your fifteen days are up - yes.

  • wwwwww Posts: 4Questions: 1Answers: 0

    also related error
    typeError: f.models is undefined

    ,close:function(){}

    here is the lib code
    ;f.models.displayController={init:function(){}
    ,open:function(){}
    ,close:function(){}
    }

  • wwwwww Posts: 4Questions: 1Answers: 0

    where can i download the 1.2.4 version Editor?

  • allanallan Posts: 63,530Questions: 1Answers: 10,473 Site admin

    Sounds like you are using DataTables 1.9 with Editor 1.3. Editor 1.3 requires DataTables 1.10 or newer. If you require an old version of Editor, please drop me an e-mail, it is not currently available for download on the site.

    Allan

This discussion has been closed.