Disable IPL column if advanced tab is selected on xCAT-UI z/VM provision page.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2013-07-08 13:14:38 +00:00
parent e5e7e4687d
commit f15ce9f06e

View File

@ -5373,6 +5373,24 @@ function createZProvisionNew(inst) {
}
});
// Disable IPL column if advanced tab is selected
hwTab.object().tabs({
select: function(event, ui) {
// Get provision tab instance
var thisTabId = $(this).parents('.ui-tabs-panel').attr('id');
var inst = thisTabId.replace('zvmProvisionTab', '');
// Disable and de-select IPL device
if (ui.index == 1) {
$('#' + thisTabId + ' table:eq(0):visible tbody tr td:nth-child(8) input').attr('disabled','disabled');
} else {
$('#' + thisTabId + ' table:eq(0):visible tbody tr td:nth-child(8) input').removeAttr('disabled');
}
$('#' + thisTabId + ' table:eq(0):visible tbody tr td:nth-child(8) input').removeAttr('checked');
}
});
/**
* Provision new
*/