change the layout on discover page

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-07-27 06:26:11 +00:00
parent 5cc6c961e5
commit 2fdf9dc8c7

View File

@ -712,12 +712,15 @@ function powerInitSupernode() {
var uploadform = $('<form action="lib/upload.php" method="post" enctype="multipart/form-data">'
+ 'Configuration File:'
+ '<input type="file" id="file" name="file"></form>');
uploadform.find('form').append(createButton('Parse'));
uploadform.append(createButton('Parse'));
uploadform.ajaxForm({
success: parseSupernodeConfig
});
$('#discoverContentDiv #supernodeDiv').append(uploadform);
var tempCenterObj = $('<center></center>');
tempCenterObj.append(uploadform);
$('#discoverContentDiv #supernodeDiv').append(tempCenterObj);
var frameArray = expandNR(getDiscoverEnv('frameName'));
var showStr = '<center><table><tbody>';