From 009cacac279d334ab1fcd9ec59f6c8c3d021f7ab Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 25 Oct 2012 15:46:05 +0000 Subject: [PATCH] Fixed bug in add zFCP dialog. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/custom/zvmUtils.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xCAT-UI/js/custom/zvmUtils.js b/xCAT-UI/js/custom/zvmUtils.js index 48619270f..eedd128dc 100644 --- a/xCAT-UI/js/custom/zvmUtils.js +++ b/xCAT-UI/js/custom/zvmUtils.js @@ -1424,6 +1424,7 @@ function openAddZfcpDialog(node, hcp) { addZfcpForm.append(info); addZfcpForm.append('
'); addZfcpForm.append('
'); + addZfcpForm.append('
'); addZfcpForm.append('
'); // Create drop down for disk pool @@ -1470,6 +1471,7 @@ function openAddZfcpDialog(node, hcp) { // Get inputs var node = $(this).find('input[name=diskNode]').val(); var address = $(this).find('input[name=diskAddress]').val(); + var loaddev = $(this).find('input[name=diskLoaddev]'); var size = $(this).find('input[name=diskSize]').val(); var pool = $(this).find('select[name=diskPool]').val(); var tag = $(this).find('select[name=diskTag]').val(); @@ -1481,7 +1483,14 @@ function openAddZfcpDialog(node, hcp) { var warn = createWarnBar('Please provide a value for each missing field.'); warn.prependTo($(this)); } else { - var args = '--addzfcp;' + pool + ';' + address + ';' + size; + if (loaddev.attr('checked')) { + loaddev = 1; + } else { + loaddev = 0; + } + + var args = '--addzfcp;' + pool + ';' + address + ';' + loaddev + ';' + size; + if (tag && tag != "null") { args += ';' + tag; } if (portName && tag != "null") {