onblur option ready, need test

This commit is contained in:
vitalets
2012-11-28 21:24:51 +04:00
parent ee13a2b1fb
commit 79847d1d92
5 changed files with 140 additions and 48 deletions

@ -26,7 +26,7 @@
return this.$form;
},
show: function () {
innerShow: function () {
this.$element.hide();
if(this.$form) {
@ -40,19 +40,13 @@
this.$form.editableform('render');
},
hide: function () {
if(!this.tip() || !this.tip().is(':visible')) {
return;
}
innerHide: function () {
this.$form.hide(this.options.anim, $.proxy(function() {
this.$element.show();
//return focus on element
if (this.options.enablefocus) {
this.$element.focus();
}
//trigger event
this.$element.triggerHandler('hidden');
}, this));
},