hide container after triggering save event

This commit is contained in:
vitalets
2013-01-17 14:52:04 +04:00
parent b0dd701b78
commit 983d011bc7
4 changed files with 10 additions and 6 deletions

@ -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');
},
/**