mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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'); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user