');
@@ -317,18 +337,18 @@ function showSelectDialog(lpars){
},
ok : function(){
$('#selectLparTable input[type=checkbox]').each(function(){
- var lparName = $(this).attr('id');
+ var lparName = $(this).attr('name');
if ('' == lparName){
//continue
return true;
}
if (true == $(this).attr('checked')){
selectLpar[lparName] = 1;
- $('#graphTable #' + lparName).css('border-color', 'aqua');
+ $('#graphTable [name=' + lparName + ']').css('border-color', 'aqua');
}
else{
delete selectLpar[lparName];
- $('#graphTable #' + lparName).css('border-color', 'transparent');
+ $('#graphTable [name=' + lparName + ']').css('border-color', 'transparent');
}
});
updateSelectLparDiv();
@@ -562,23 +582,16 @@ function createActionMenu(){
* fsp : all fsp and there related lpars
* fspinfo : all fsps' hardwareinfo
* @return
- * fspDiv's html
+ *
*/
function createFspDiv(fspName, mtm, fsp){
//create fsp title
- var title = '
' + fspName;
var lparStatusRow = '';
- if (hardwareInfo[mtm]){
- title += '(' + hardwareInfo[mtm][0] + ')';
- }
-
- title += '
';
for (var lparIndex in fsp[fspName]['children']){
var lparName = fsp[fspName]['children'][lparIndex];
var color = statusMap(lparList[lparName]);
- title += lparName + ' ';
- lparStatusRow += '
1
';
+ lparStatusRow += '
1
';
}
//select the backgroud
@@ -591,11 +604,42 @@ function createFspDiv(fspName, mtm, fsp){
}
//create return value
- var retHtml = '
';
- retHtml += '
' + lparStatusRow + '
';
+ var retHtml = '
';
+ retHtml += '
' + lparStatusRow + '
';
return retHtml;
}
+/**
+ * create the physical graphical fsps' help witch could select the lpars.
+ *
+ * @param bpaName : fsp's key
+ * fsp : all fsp and there related lpars
+ * fspinfo : all fsps' hardwareinfo
+ * @return
+ *
+ */
+function createFspTip(fspName, mtm, fsp){
+ var tip = $('');
+ var tempTable = $('
');
+ if (hardwareInfo[mtm]){
+ tip.append('
' + fspName + '(' + hardwareInfo[mtm][0] + ')
');
+ }
+ else{
+ tip.append('
' + fspName + '
');
+ }
+
+ for (var lparIndex in fsp[fspName]['children']){
+ var lparName = fsp[fspName]['children'][lparIndex];
+ var color = statusMap(lparList[lparName]);
+ var row = '
';
+ row += '
'+ lparName + '
';
+ row += '
' + lparList[lparName] + '
';
+ tempTable.append(row);
+ }
+
+ tip.append(tempTable);
+ return tip;
+}
/**
* map the lpar's status into a color
*