diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-07-24 16:01:44 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-08-21 10:47:08 +0200 |
commit | def8696819e923bc7126af54bcd9f1452de30dcd (patch) | |
tree | e4557cd8016f56011bb7ac1114590326d1a6eb49 /install/ui/src/freeipa/widget.js | |
parent | 4832f2986d1a457acf3ff000433aa0732364c19c (diff) | |
download | freeipa-def8696819e923bc7126af54bcd9f1452de30dcd.tar.gz freeipa-def8696819e923bc7126af54bcd9f1452de30dcd.tar.xz freeipa-def8696819e923bc7126af54bcd9f1452de30dcd.zip |
webui: rename tooltip to title
- use title for input's elements 'title' attribute
- tooltip for Bootstrap's tooltip component
https://fedorahosted.org/freeipa/ticket/4471
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index da901d9e9..8324a8795 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -102,10 +102,10 @@ IPA.widget = function(spec) { that.label = text.get(spec.label); /** - * Helper text + * Title text * @property {string} */ - that.tooltip = text.get(spec.tooltip); + that.title = text.get(spec.title); /** * Measurement unit @@ -732,7 +732,7 @@ IPA.text_widget = function(spec) { id: id, 'class': 'form-control', size: that.size, - title: that.tooltip, + title: that.title, placeholder: that.placeholder, keyup: function() { that.on_value_changed(); @@ -1313,7 +1313,7 @@ IPA.option_widget_base = function(spec, that) { // classic properties that.name = spec.name; that.label = spec.label; - that.tooltip = spec.tooltip; + that.title = spec.title; that.sort = spec.sort === undefined ? false : spec.sort; that.value_changed = that.value_changed || IPA.observer(); @@ -1488,12 +1488,12 @@ IPA.option_widget_base = function(spec, that) { name: input_name, disabled: !enabled, value: option.value, - title: option.tooltip || that.tooltip, + title: option.title || that.title || '', change: that.on_input_change }, opt_cont); option.label_node = construct.create('label', { - title: option.tooltip || that.tooltip, + title: option.title || that.title || '', 'for': id }, opt_cont); option.label_node.textContent = option.label || ''; @@ -2093,7 +2093,7 @@ IPA.textarea_widget = function (spec) { cols: that.cols, 'class': 'form-control', readOnly: !!that.read_only, - title: that.tooltip, + title: that.title || '', placeholder: that.placeholder, keyup: function() { that.on_value_changed(); @@ -3485,7 +3485,7 @@ IPA.combobox_widget = function(spec) { name: that.name, 'class': 'form-control', id: id, - title: that.tooltip, + title: that.title, keydown: that.on_input_keydown, mousedown: that.on_no_close, click: function() { @@ -4251,7 +4251,7 @@ IPA.button_widget = function(spec) { that.button = IPA.button({ id: that.id, name: that.name, - title: that.tooltip, + title: that.title, label: that.label, 'class': that['class'], button_class: that.button_class, |