allow switching from text to password
This commit is contained in:
parent
88086fb5bd
commit
874b68c8a6
1 changed files with 3 additions and 0 deletions
|
@ -143,6 +143,9 @@ Ox.Input = function(options, self) {
|
|||
setPlaceholder();
|
||||
} else if (key == 'readonly') {
|
||||
self.$input.attr({readonly: value});
|
||||
} else if (key == 'type') {
|
||||
// jQuery does not allow update via attr({type: value}) due to IE 6 bug
|
||||
self.$input[0].type = value
|
||||
} else if (key == 'value') {
|
||||
if (self.options.type == 'float' && self.options.decimals) {
|
||||
self.options.value = self.options.value.toFixed(self.options.decimals);
|
||||
|
|
Loading…
Reference in a new issue