summaryrefslogtreecommitdiffstats
path: root/install/static/details.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2010-12-02 16:17:22 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-12-02 18:12:02 -0500
commite382472fce9161769259a492d220520627e7225d (patch)
tree8188a8d654b78a6ffb52212d9ed9dfe509b519cf /install/static/details.js
parent88188cbb2050d4488df443a3f44454dd1867941f (diff)
downloadfreeipa-e382472fce9161769259a492d220520627e7225d.tar.gz
freeipa-e382472fce9161769259a492d220520627e7225d.tar.xz
freeipa-e382472fce9161769259a492d220520627e7225d.zip
tooltips uses the doc field for tooltips on text fields on the details pages
Diffstat (limited to 'install/static/details.js')
-rw-r--r--install/static/details.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/install/static/details.js b/install/static/details.js
index f549e6a4c..a3f1b2a5c 100644
--- a/install/static/details.js
+++ b/install/static/details.js
@@ -61,7 +61,7 @@ function ipa_details_field(spec) {
if (param_info) {
if (param_info['multivalue'] || param_info['class'] == 'List')
multivalue = true;
- var hint = param_info['hint'];
+ var hint = param_info['doc'];
if (hint){
hint_span = $('<span />',{
'class': 'attrhint',
@@ -766,11 +766,16 @@ function _ipa_create_text_input(value, param_info, rights, index)
}
}
+ var doc = that.name;
+ if (param_info && param_info.doc){
+ doc = param_info.doc;
+ }
var span = $("<Span />");
var input = $("<input/>",{
type: "text",
name: that.name,
value: value.toString(),
+ title: doc,
keyup: function(){
var undo_link=this.nextElementSibling;
undo_link.style.display ="inline";