hide container after triggering save event
This commit is contained in:
src
@ -243,7 +243,6 @@ Applied as jQuery method.
|
||||
},
|
||||
|
||||
save: function(e, params) {
|
||||
this.hide('save');
|
||||
/**
|
||||
Fired when new value was submitted. You can use <code>$(this).data('editableContainer')</code> inside handler to access to editableContainer instance
|
||||
|
||||
@ -264,6 +263,9 @@ Applied as jQuery method.
|
||||
});
|
||||
**/
|
||||
this.$element.triggerHandler('save', params);
|
||||
|
||||
//hide must be after trigger, as saving value may require methods od plugin, applied to input
|
||||
this.hide('save');
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -38,12 +38,14 @@
|
||||
innerHide: function () {
|
||||
this.$tip.hide(this.options.anim, $.proxy(function() {
|
||||
this.$element.show();
|
||||
this.tip().empty().remove();
|
||||
this.innerDestroy();
|
||||
}, this));
|
||||
},
|
||||
|
||||
innerDestroy: function() {
|
||||
this.tip().remove();
|
||||
if(this.tip()) {
|
||||
this.tip().empty().remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user