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?
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' );
}
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.
Answers
You'll have to show your code.
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;
} );//end
If you were on a free trial, and your fifteen days are up - yes.
also related error
typeError: f.models is undefined
,close:function(){}
here is the lib code
;f.models.displayController={init:function(){}
,open:function(){}
,close:function(){}
}
where can i download the 1.2.4 version Editor?
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