rename shown --> postrender in text input

This commit is contained in:
vitalets 2013-01-11 17:09:53 +04:00
parent 0ced7f87f5
commit 770cf7ad90
2 changed files with 6 additions and 8 deletions
src
editable-form
inputs

@ -106,9 +106,9 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
this.showForm();
//call shown method to perform actions required form to be shown
if(this.input.shown) {
this.input.shown();
//call postrender method to perform actions required visibility of form
if(this.input.postrender) {
this.input.postrender();
}
}, this));
},
@ -315,10 +315,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
if(key === 'value') {
this.setValue(value);
}
//pass to input
// if(this.input && this.input.option) {
// this.input.option(key, value);
// }
//do not pass option to input as it is passed in editable-element
},
setValue: function(value, convertStr) {

@ -55,7 +55,7 @@ $(function(){
}
},
shown: function() {
postrender: function() {
if(this.$clear) {
//can position clear button only here, when form is shown and height can be calculated
var h = this.$input.outerHeight() || 20,