From f15ce9f06e7ec32d66e8872658f4d4b6bf238f6b Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 8 Jul 2013 13:14:38 +0000 Subject: [PATCH] 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 --- xCAT-UI/js/custom/zvmUtils.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index bb4b62c33..ae7a7b973 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -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 */