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

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