From 81d6d9005f21ea315d2fb8933ecaf08343c16794 Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 1 Nov 2010 14:28:11 +0000 Subject: [PATCH] Added tooltips to forms. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/zvmUtils.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index cbb6c2830..50a0f74b2 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -1925,7 +1925,7 @@ function createZProvisionExisting(inst) { // Create operating system image input var os = $('
'); var osLabel = $(''); - var osInput = $(''); + var osInput = $(''); // Get image names on focus osInput.one('focus', function(){ var imageNames = $.cookie('ImageNames'); @@ -1952,6 +1952,14 @@ function createZProvisionExisting(inst) { bootMethod.append(methodSelect); provExisting.append(bootMethod); + // Generate tooltips + provExisting.find('div input[title]').tooltip({ + position: "center right", // Place tooltip on the right edge + offset: [-2, 10], // A little tweaking of the position + effect: "fade", // Use the built-in fadeIn/fadeOut effect + opacity: 0.7 // Custom opacity setting + }); + /** * Provision existing */