diff --git a/xCAT-UI/js/monitor/gangliamon.js b/xCAT-UI/js/monitor/gangliamon.js index d5c35c01f..42776c9a3 100644 --- a/xCAT-UI/js/monitor/gangliamon.js +++ b/xCAT-UI/js/monitor/gangliamon.js @@ -198,8 +198,7 @@ function loadGroups4Ganglia(data) { var info = $('<div class="ui-state-highlight ui-corner-all"></div>'); var msg = $('<p></p>'); msg.append('<span class="ui-icon ui-icon-info"></span>'); - msg - .append('Review the nodes that are monitored by Ganglia. You can turn on Ganglia monitoring on a node by selecting it and clicking on Monitor. If you are satisfied with the nodes you want to monitor, '); + msg.append('Review the nodes that are monitored by Ganglia. You can turn on Ganglia monitoring on a node by selecting it and clicking on Monitor. If you are satisfied with the nodes you want to monitor, '); msg.append(gangliaLnk); msg.append(' to open Ganglia page.'); info.append(msg); @@ -230,8 +229,7 @@ function loadGroups4Ganglia(data) { success : loadNodes4Ganglia }); - // Get subgroups within selected group - // only when this is the parent group and not a subgroup + // Get subgroups within selected group only when this is the parent group and not a subgroup if (data.rslt.obj.attr('id').indexOf('Subgroup') < 0) { $.ajax( { url : 'lib/cmd.php', @@ -247,7 +245,7 @@ function loadGroups4Ganglia(data) { }); } } // End of if (thisGroup) - } ); + }); } /** @@ -461,11 +459,9 @@ function loadNodes4Ganglia(data) { pingCol.find('span a').bind('click', function(event) { refreshNodeStatus(group); }); - powerCol.find('span a').bind('click', function(event) { refreshPowerStatus(group); }); - gangliaCol.bind('click', function(event) { refreshGangliaStatus(group); }); @@ -645,8 +641,8 @@ function monitorNode(node, monitor) { } else { warningMsg = out[i]; } - } // End of if - } // End of for + } + } // If there are warnings if (warn) { diff --git a/xCAT-UI/js/provision/images.js b/xCAT-UI/js/provision/images.js index 0dd311ac0..d1cda5dc9 100644 --- a/xCAT-UI/js/provision/images.js +++ b/xCAT-UI/js/provision/images.js @@ -43,8 +43,7 @@ function loadImages(data) { // Image attributes var headers = new Object(); - // Clear cookie containing list of images where their attributes - // need to be updated + // Clear cookie containing list of images where their attributes need to be updated $.cookie('images2update', ''); // Clear hash table containing image attributes origAttrs = ''; @@ -193,6 +192,7 @@ function loadImages(data) { /** * Enable editable columns */ + // Do not make 1st, 2nd, 3rd, 4th, or 5th column editable $('#imagesDataTable td:not(td:nth-child(1),td:nth-child(2))').editable( function(value, settings) { @@ -330,8 +330,7 @@ function updateImageAttrs() { } // End of if } // End of for - // Clear cookie containing list of images where - // their attributes need to be updated + // Clear cookie containing list of images where their attributes need to be updated $.cookie('images2update', ''); } @@ -378,8 +377,7 @@ function restoreImageAttrs() { } // End of if } // End of for - // Clear cookie containing list of images where - // their attributes need to be updated + // Clear cookie containing list of images where their attributes need to be updated $.cookie('images2update', ''); }