From acfdddbdb0c53ce6254e60ff54ad701529a4772f Mon Sep 17 00:00:00 2001
From: Adam Young <ayo...@redhat.com>
Date: Tue, 21 Jun 2011 14:51:03 -0400
Subject: [PATCH] tooltips for host add

https://fedorahosted.org/freeipa/ticket/1363
https://fedorahosted.org/freeipa/ticket/1361
---
 install/ui/host.js   |    3 ++-
 install/ui/widget.js |    3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/install/ui/host.js b/install/ui/host.js
index 702d0cb833908083feeb5334fef3d3aaab53552b..d8a417ab7f38dbc5779dc0137712e1489e83a958 100644
--- a/install/ui/host.js
+++ b/install/ui/host.js
@@ -103,7 +103,8 @@ IPA.entity_factories.host = function () {
                     factory:IPA.text_widget,
                     name:"ip_address",
                     undo:false,
-                    label:  IPA.get_method_option('host_add','ip_address')['label']
+                    label:  IPA.get_method_option('host_add','ip_address')['label'],
+                    tooltip: IPA.get_method_option('host_add','ip_address')['doc']
                 }
             ]
         }).
diff --git a/install/ui/widget.js b/install/ui/widget.js
index 528ee8b19cbc2abd7595bc47a737eb6409169df8..38826ee9d64515a8fd88604e2fcf2812ca314f91 100644
--- a/install/ui/widget.js
+++ b/install/ui/widget.js
@@ -1609,7 +1609,8 @@ IPA.entity_select_widget = function(spec) {
 
         if (editable){
             that.edit_box = $('<input />',{
-                type: 'text'
+                type: 'text',
+                title: that.tooltip
             });
 
             $('<div style:"display=block;" />').
-- 
1.7.5.2

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to