From 874b68c8a6a06cb2cc86721d0bc99eb4aba1ae73 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 30 Jul 2019 13:07:14 +0200 Subject: [PATCH] allow switching from text to password --- source/UI/js/Form/Input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/UI/js/Form/Input.js b/source/UI/js/Form/Input.js index 0d079e63..bce4e153 100644 --- a/source/UI/js/Form/Input.js +++ b/source/UI/js/Form/Input.js @@ -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);