From 2fb2876fd268b3967cc9371dff4bca52b0281063 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sun, 11 Aug 2013 09:50:43 +0000 Subject: [PATCH] Ox.Input: add 'clearTooltip' option --- source/Ox.UI/js/Form/Input.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Ox.UI/js/Form/Input.js b/source/Ox.UI/js/Form/Input.js index 664c6438..d44eaffb 100644 --- a/source/Ox.UI/js/Form/Input.js +++ b/source/Ox.UI/js/Form/Input.js @@ -18,6 +18,7 @@ Ox.Input Input Element function(key, value, blur, callback), returns value autovalidate --remote validation-- clear if true, has clear button + clearTooltip clear button tooltip changeOnKeypress if true, fire change event while typing disabled if true, is disabled height px (for type='textarea' and type='range' with orientation='horizontal') @@ -87,6 +88,7 @@ Ox.Input = function(options, self) { autovalidate: null, changeOnKeypress: false, clear: false, + clearTooltip: '', decimals: 0, disabled: false, height: 16, @@ -255,6 +257,7 @@ Ox.Input = function(options, self) { self.$button = Ox.Button({ overlap: 'left', title: 'close', + tooltip: self.options.clearTooltip, type: 'image' }) .css({