activate method

This commit is contained in:
vitalets
2012-11-30 18:48:20 +04:00
parent de7907575a
commit 49d795bf0d
2 changed files with 36 additions and 27 deletions

@ -322,6 +322,16 @@ Applied as jQuery method.
}
});
},
/**
Activates input of visible container (e.g. set focus)
@method activate()
**/
activate: function() {
if(this.tip && this.tip().is(':visible') && this.$form) {
this.$form.data('editableform').input.activate();
}
}
};