From ef127e1db4830164e9ff393fde7d4adf9e93fe6c Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Fri, 19 Sep 2014 10:14:03 +0200 Subject: [PATCH] FileInput: add update handler for 'label' option --- source/Ox.UI/js/Form/FileInput.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox.UI/js/Form/FileInput.js b/source/Ox.UI/js/Form/FileInput.js index 72ad3265..02cbd940 100644 --- a/source/Ox.UI/js/Form/FileInput.js +++ b/source/Ox.UI/js/Form/FileInput.js @@ -34,6 +34,9 @@ Ox.FileInput = function(options, self) { that[self.options.disabled ? 'addClass' : 'removeClass']('OxDisabled'); self.$button.options({disabled: self.options.disabled}); 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' : ''))