ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From me...@apache.org
Subject [4/5] ranger git commit: RANGER-2193: Form validation during testconnection should be consistent with service creation/editing
Date Thu, 27 Sep 2018 06:59:05 GMT
RANGER-2193: Form validation during testconnection should be consistent with service creation/editing

Signed-off-by: peng.jianhua <peng.jianhua@zte.com.cn>


Project: http://git-wip-us.apache.org/repos/asf/ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/ranger/commit/6792e65a
Tree: http://git-wip-us.apache.org/repos/asf/ranger/tree/6792e65a
Diff: http://git-wip-us.apache.org/repos/asf/ranger/diff/6792e65a

Branch: refs/heads/ranger-1
Commit: 6792e65ac21cb73e00bf639bc89f9ca714ff8f08
Parents: d897bc9
Author: zhangqiang2 <zhangqiang2@zte.com.cn>
Authored: Sat Aug 18 13:46:03 2018 +0800
Committer: Mehul Parikh <mehul@apache.org>
Committed: Thu Sep 27 12:06:03 2018 +0530

----------------------------------------------------------------------
 .../src/main/webapp/scripts/views/service/ServiceCreate.js        | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/6792e65a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js b/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
index 7c2c778..2f063fa 100644
--- a/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
+++ b/security-admin/src/main/webapp/scripts/views/service/ServiceCreate.js
@@ -193,6 +193,9 @@ define(function(require){
 			if(! _.isEmpty(errors)){
 				return;
 			}
+			if (!this.form.formValidation()) {
+				return;
+			}
 			this.form.beforeSave();
 			this.model.testConfig(this.model,{
 					//wait: true,


Mime
View raw message