Fixed input value.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2013-02-11 03:57:23 +00:00
parent 550b50149c
commit 6aee46151c

View File

@ -1877,13 +1877,20 @@ function openShareDiskDialog(disks2share) {
var dialogId = 'zvmShareDisk';
var shareDiskForm = $('<div id="' + dialogId + '" class="form"></div>');
var args = disks2share.split(';');
var tgtHcp = args[0];
var tgtVol = args[1];
if (!tgtVol || tgtVol == "undefined")
tgtVol = "";
// Create info bar
var info = createInfoBar('Indicate a full-pack minidisk is to be shared by the users of many real and virtual systems.');
shareDiskForm.append(info);
// Set region input based on those selected on table (if any)
var node = $('<div><label>Node:</label><input type="text" name="node" title="The node name"/></div>');
var volAddr = $('<div><label>Volume addresses:</label><input type="text" name="volAddr" value="' + disks2share + '" title="The real device number of the volume to be shared"/></div>');
var volAddr = $('<div><label>Volume addresses:</label><input type="text" name="volAddr" value="' + tgtVol + '" title="The real device number of the volume to be shared"/></div>');
var shareEnable = $('<div><label>Share enable:</label><select name="shareEnable" title="Turns sharing of the specified full-pack minidisk on or off"><option value="ON">On</option><option value="OFF">Off</option></select></div>');
shareDiskForm.append(node, volAddr, shareEnable);