allow switching from text to password

This commit is contained in:
j 2019-07-30 13:07:14 +02:00
parent 88086fb5bd
commit 874b68c8a6

View file

@ -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);