Added tooltips to forms.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-11-01 14:28:11 +00:00
parent 2c25ca7158
commit 81d6d9005f

View File

@ -1925,7 +1925,7 @@ function createZProvisionExisting(inst) {
// Create operating system image input
var os = $('<div></div>');
var osLabel = $('<label for="os">Operating system image:</label>');
var osInput = $('<input type="text" name="os"/>');
var osInput = $('<input type="text" name="os" title="You must give the operating system to install on this node or node range, e.g. rhel5.5-s390x-install-compute"/>');
// 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
*/