list input + checklist alpha

This commit is contained in:
vitalets
2012-11-25 12:12:26 +04:00
parent 903882e161
commit d2f988d545
10 changed files with 444 additions and 226 deletions

@ -17,7 +17,7 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
EditableForm.prototype = {
constructor: EditableForm,
initInput: function() {
initInput: function() { //called once
var TypeConstructor, typeOptions;
//create input of specified type
@ -247,7 +247,18 @@ Editableform is linked with one of input types, e.g. 'text' or 'select'.
option: function(key, value) {
this.options[key] = value;
}
if(key === 'value') {
this.setValue(value);
}
},
setValue: function(value, convertStr) {
if(convertStr) {
this.value = this.input.str2value(value);
} else {
this.value = value;
}
}
};
/*