bug: source loaded twice if sourceCache = true

This commit is contained in:
vitalets
2013-01-08 13:33:09 +04:00
parent 2fd6340b03
commit f06b5c4d01
8 changed files with 68 additions and 43 deletions

@ -21,8 +21,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
EditableForm.prototype = {
constructor: EditableForm,
initInput: function() { //called once
//create input of specified type
this.input = $.fn.editableutils.createInput(this.options);
//take input from options or create new input instance
this.input = this.options.input || $.fn.editableutils.createInput(this.options);
if(!this.input) {
return;
}