FileInput: add update handler for 'label' option

This commit is contained in:
rlx 2014-09-19 10:14:03 +02:00
parent f1120a825b
commit ef127e1db4

View file

@ -34,6 +34,9 @@ Ox.FileInput = function(options, self) {
that[self.options.disabled ? 'addClass' : 'removeClass']('OxDisabled'); that[self.options.disabled ? 'addClass' : 'removeClass']('OxDisabled');
self.$button.options({disabled: self.options.disabled}); self.$button.options({disabled: self.options.disabled});
self.$input && self.$input[self.options.disabled ? 'hide' : 'show'](); self.$input && self.$input[self.options.disabled ? 'hide' : 'show']();
},
label: function() {
self.$label && self.$label.options({title: self.options.label});
} }
}) })
.addClass('OxFileInput' + (self.options.disabled ? ' OxDisabled' : '')) .addClass('OxFileInput' + (self.options.disabled ? ' OxDisabled' : ''))