Add error message when inputs are missing.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
05ffe245ee
commit
2a23403700
@ -2237,7 +2237,6 @@ function createZProvisionNew(inst) {
|
||||
&& inputs.eq(i).attr('name') != 'os'
|
||||
&& inputs.eq(i).attr('type') != 'password') {
|
||||
inputs.eq(i).css('border', 'solid #FF0000 1px');
|
||||
errMsg = errMsg + 'You are missing inputs.<br>';
|
||||
ready = false;
|
||||
} else {
|
||||
inputs.eq(i).css('border', 'solid #BDBDBD 1px');
|
||||
@ -2253,6 +2252,11 @@ function createZProvisionNew(inst) {
|
||||
} else {
|
||||
thisUserEntry.css('border', 'solid #BDBDBD 1px');
|
||||
}
|
||||
|
||||
// Show error message for missing inputs
|
||||
if (!ready) {
|
||||
errMsg = errMsg + 'You are missing inputs.<br>';
|
||||
}
|
||||
|
||||
// Check if user entry contains user ID
|
||||
var thisUserId = $('#' + thisTabId + ' input[name=userId]:visible');
|
||||
|
Loading…
Reference in New Issue
Block a user