Removed href="#" from all links because it forces the page to initialize it's position, which could be annoying to the user.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
371be3a523
commit
1753ca7f02
@ -46,6 +46,7 @@
|
||||
font: 14px verdana, arial, helvetica, sans-serif;
|
||||
color: #424242;
|
||||
padding: 11px 30px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#header ul a:hover {
|
||||
@ -71,6 +72,7 @@
|
||||
color: #0000FF;
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#header div a:hover {
|
||||
@ -118,6 +120,7 @@ body {
|
||||
display: inline-table;
|
||||
padding: 5px 15px 15px 5px;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#groups a:hover {
|
||||
@ -248,6 +251,7 @@ span.ui-icon-info {
|
||||
font: 12px verdana, arial, helvetica, sans-serif;
|
||||
text-decoration: none;
|
||||
color: #0000FF;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tab a:hover {
|
||||
@ -278,6 +282,7 @@ span.ui-icon-info {
|
||||
|
||||
.actionBar a {
|
||||
color: #424242;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/****************** Status bar ******************/
|
||||
@ -416,6 +421,7 @@ span.ui-icon-info {
|
||||
.datatable a {
|
||||
text-decoration: none;
|
||||
color: #000FF;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.datatable a:hover {
|
||||
|
@ -123,7 +123,7 @@ function loadTableNames(data) {
|
||||
for ( var i = 0; i < tables.length; i++) {
|
||||
// Create a link for each table
|
||||
var args = tables[i].split(':');
|
||||
var link = $('<a href="#" id="' + args[0] + '">' + args[0] + '</a>');
|
||||
var link = $('<a id="' + args[0] + '">' + args[0] + '</a>');
|
||||
|
||||
// Open table on click
|
||||
link.bind('click', function(e) {
|
||||
|
@ -280,7 +280,7 @@ function ShowUpdateResult(data)
|
||||
}
|
||||
}
|
||||
|
||||
$('#update').append('<br\><a href="#">Response Detail:</a>');
|
||||
$('#update').append('<br\><a>Response Detail:</a>');
|
||||
$('#update a').bind('click', function(){
|
||||
$('#resDetail').show();
|
||||
});
|
||||
|
@ -328,7 +328,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
* Show user entry
|
||||
*/
|
||||
var toggleLinkId = node + 'ToggleLink';
|
||||
var toggleLink = $('<a id="' + toggleLinkId + '" href="#">Show directory entry</a>');
|
||||
var toggleLink = $('<a id="' + toggleLinkId + '">Show directory entry</a>');
|
||||
toggleLink.one('click', function(event) {
|
||||
// Toggle inventory division
|
||||
$('#' + invDivId).toggle();
|
||||
@ -525,7 +525,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
}
|
||||
procType = $('<td>' + temp + '</td>');
|
||||
procAddr = $('<td></td>');
|
||||
procLink = $('<a href="#">' + args[1] + '</a>');
|
||||
procLink = $('<a>' + args[1] + '</a>');
|
||||
|
||||
// Append context menu to link
|
||||
procLink.contextMenu(contextMenu, {
|
||||
@ -567,7 +567,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
/**
|
||||
* Add processor
|
||||
*/
|
||||
var addProcLink = $('<a href="#">Add temporary processor</a>');
|
||||
var addProcLink = $('<a>Add temporary processor</a>');
|
||||
addProcLink.bind('click', function(event) {
|
||||
openAddProcDialog(node);
|
||||
});
|
||||
@ -628,7 +628,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
|
||||
// Get DASD virtual device, type, volume ID, access, and size
|
||||
dasdVDev = $('<td></td>');
|
||||
dasdLink = $('<a href="#">' + args[1] + '</a>');
|
||||
dasdLink = $('<a>' + args[1] + '</a>');
|
||||
|
||||
// Append context menu to link
|
||||
dasdLink.contextMenu(contextMenu, {
|
||||
@ -659,7 +659,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
/**
|
||||
* Add disk
|
||||
*/
|
||||
var addDasdLink = $('<a href="#">Add disk</a>');
|
||||
var addDasdLink = $('<a>Add disk</a>');
|
||||
addDasdLink.bind('click', function(event) {
|
||||
var hcp = attrs['hcp'][0].split('.');
|
||||
openAddDiskDialog(node, hcp[0]);
|
||||
@ -720,7 +720,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
|
||||
// Get NIC virtual device, type, port name, and number of devices
|
||||
nicVDev = $('<td></td>');
|
||||
nicLink = $('<a href="#">' + args[1] + '</a>');
|
||||
nicLink = $('<a>' + args[1] + '</a>');
|
||||
|
||||
// Append context menu to link
|
||||
nicLink.contextMenu(contextMenu, {
|
||||
@ -754,7 +754,7 @@ zvmPlugin.prototype.loadInventory = function(data) {
|
||||
/**
|
||||
* Add NIC
|
||||
*/
|
||||
var addNicLink = $('<a href="#">Add NIC</a>');
|
||||
var addNicLink = $('<a>Add NIC</a>');
|
||||
addNicLink.bind('click', function(event) {
|
||||
var hcp = attrs['hcp'][0].split('.');
|
||||
openAddNicDialog(node, hcp[0]);
|
||||
@ -1080,7 +1080,7 @@ zvmPlugin.prototype.addNode = function() {
|
||||
var node = args[1].replace('node=', '');
|
||||
|
||||
// If there was an error, do not continue
|
||||
if (rsp.length) {s
|
||||
if (rsp.length) {
|
||||
openDialog('warn', '(Error) Failed to create node definition');
|
||||
} else {
|
||||
openDialog('info', 'Node definitions created for ' + node);
|
||||
|
@ -2136,7 +2136,7 @@ function createZProvisionNew(inst) {
|
||||
/**
|
||||
* Add disks
|
||||
*/
|
||||
var addDiskLink = $('<a href="#">Add disk</a>');
|
||||
var addDiskLink = $('<a>Add disk</a>');
|
||||
addDiskLink.bind('click', function(event) {
|
||||
// Create a row
|
||||
var diskRow = $('<tr></tr>');
|
||||
|
@ -108,7 +108,7 @@ function loadGroups(data) {
|
||||
// Create a link for each group
|
||||
for ( var i = groups.length; i--;) {
|
||||
var subItem = $('<li></li>');
|
||||
var link = $('<a href="#">' + groups[i] + '</a>');
|
||||
var link = $('<a>' + groups[i] + '</a>');
|
||||
subItem.append(link);
|
||||
subUL.append(subItem);
|
||||
}
|
||||
@ -152,7 +152,7 @@ function loadGroups(data) {
|
||||
});
|
||||
|
||||
// Create link to add nodes
|
||||
var addNodeLink = $('<a href="#">Add node</a>');
|
||||
var addNodeLink = $('<a>Add node</a>');
|
||||
addNodeLink.bind('click', function(event) {
|
||||
var info = createInfoBar('Select the hardware management for the new node range');
|
||||
var addNodeForm = $('<div class="form"></div>');
|
||||
@ -262,8 +262,8 @@ function loadNodes(data) {
|
||||
|
||||
// Add column for check box, node, ping, and power
|
||||
sorted.unshift('<input type="checkbox" onclick="selectAllCheckbox(event, $(this))">', 'node',
|
||||
'<a href="#">ping</a><img src="images/loader.gif"></img>',
|
||||
'<a href="#">power</a><img src="images/loader.gif"></img>');
|
||||
'<a>ping</a><img src="images/loader.gif"></img>',
|
||||
'<a>power</a><img src="images/loader.gif"></img>');
|
||||
|
||||
// Create a datatable
|
||||
var dTable = new DataTable('nodesDataTable');
|
||||
@ -276,7 +276,7 @@ function loadNodes(data) {
|
||||
// Create a check box
|
||||
var checkBx = '<input type="checkbox" name="' + node + '"/>';
|
||||
// Open node onclick
|
||||
var nodeLink = $('<a class="node" id="' + node + '" href="#">' + node + '</a>').bind('click', loadNode);
|
||||
var nodeLink = $('<a class="node" id="' + node + '">' + node + '</a>').bind('click', loadNode);
|
||||
row.push(checkBx, nodeLink, '', '');
|
||||
|
||||
// Go through each header
|
||||
@ -309,12 +309,12 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Power
|
||||
*/
|
||||
var powerLnk = $('<a href="#">Power</a>');
|
||||
var powerLnk = $('<a>Power</a>');
|
||||
|
||||
/*
|
||||
* Power on
|
||||
*/
|
||||
var powerOnLnk = $('<a href="#">Power on</a>');
|
||||
var powerOnLnk = $('<a>Power on</a>');
|
||||
powerOnLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -325,7 +325,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Power off
|
||||
*/
|
||||
var powerOffLnk = $('<a href="#">Power off</a>');
|
||||
var powerOffLnk = $('<a>Power off</a>');
|
||||
powerOffLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -336,7 +336,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Clone
|
||||
*/
|
||||
var cloneLnk = $('<a href="#">Clone</a>');
|
||||
var cloneLnk = $('<a>Clone</a>');
|
||||
cloneLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable').split(',');
|
||||
for ( var i = 0; i < tgtNodes.length; i++) {
|
||||
@ -372,7 +372,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Delete
|
||||
*/
|
||||
var deleteLnk = $('<a href="#">Delete</a>');
|
||||
var deleteLnk = $('<a>Delete</a>');
|
||||
deleteLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -383,7 +383,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Unlock
|
||||
*/
|
||||
var unlockLnk = $('<a href="#">Unlock</a>');
|
||||
var unlockLnk = $('<a>Unlock</a>');
|
||||
unlockLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -394,7 +394,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Run script
|
||||
*/
|
||||
var scriptLnk = $('<a href="#">Run script</a>');
|
||||
var scriptLnk = $('<a>Run script</a>');
|
||||
scriptLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -405,7 +405,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Update node
|
||||
*/
|
||||
var updateLnk = $('<a href="#">Update</a>');
|
||||
var updateLnk = $('<a>Update</a>');
|
||||
updateLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -416,7 +416,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Set boot state
|
||||
*/
|
||||
var setBootStateLnk = $('<a href="#">Set boot state</a>');
|
||||
var setBootStateLnk = $('<a>Set boot state</a>');
|
||||
setBootStateLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -428,7 +428,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Boot to network
|
||||
*/
|
||||
var boot2NetworkLnk = $('<a href="#">Boot to network</a>');
|
||||
var boot2NetworkLnk = $('<a>Boot to network</a>');
|
||||
boot2NetworkLnk.bind('click', function(event) {
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -439,7 +439,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Open the Rcons page
|
||||
*/
|
||||
var rcons = $('<a href="#">Open Rcons</a>');
|
||||
var rcons = $('<a>Open Rcons</a>');
|
||||
rcons.bind('click', function(event){
|
||||
var tgtNodes = getNodesChecked('nodesDataTable');
|
||||
if (tgtNodes) {
|
||||
@ -450,7 +450,7 @@ function loadNodes(data) {
|
||||
/*
|
||||
* Advanced
|
||||
*/
|
||||
var advancedLnk = $('<a href="#">Advanced</a>');
|
||||
var advancedLnk = $('<a>Advanced</a>');
|
||||
|
||||
// Power actions
|
||||
var powerActions = [ powerOnLnk, powerOffLnk ];
|
||||
|
Loading…
Reference in New Issue
Block a user