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

@ -241,7 +241,8 @@ Makes editable any HTML element on the page. Applied as jQuery method.
//init editableContainer: popover, tooltip, inline, etc..
if(!this.container) {
var containerOptions = $.extend({}, this.options, {
value: this.value
value: this.value,
input: this.input //pass input to form (as it is already created)
});
this.$element.editableContainer(containerOptions);
this.$element.on("save.internal", $.proxy(this.save, this));
@ -355,6 +356,9 @@ Makes editable any HTML element on the page. Applied as jQuery method.
if(this.container) {
this.container.destroy();
}
this.$element.off("save.internal");
this.$element.removeClass('editable');
this.$element.removeClass('editable-open');
this.$element.removeData('editable');