You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by zh...@apache.org on 2017/09/21 02:31:21 UTC

ranger git commit: revert RANGER-1782

Repository: ranger
Updated Branches:
  refs/heads/master 88d8481d1 -> afc5e742d


revert RANGER-1782


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

Branch: refs/heads/master
Commit: afc5e742d7d15127737bcc0447a9cee78ee523c7
Parents: 88d8481
Author: peng.jianhua <pe...@zte.com.cn>
Authored: Thu Sep 21 10:29:02 2017 +0800
Committer: peng.jianhua <pe...@zte.com.cn>
Committed: Thu Sep 21 10:29:02 2017 +0800

----------------------------------------------------------------------
 .../src/main/webapp/scripts/views/policies/RangerPolicyForm.js    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ranger/blob/afc5e742/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
----------------------------------------------------------------------
diff --git a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
index 3a58dcc..9a8d82d 100644
--- a/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
+++ b/security-admin/src/main/webapp/scripts/views/policies/RangerPolicyForm.js
@@ -333,8 +333,7 @@ define(function(require){
 						field.editor.validators = this.defaultValidator[key];
 						if($.inArray('required',field.editor.validators) >= 0){
 							var label = field.$el.find('label').html();
-							label=label.indexOf("*")>-1?label:label+"*";
-							field.$el.find('label').html(label);
+							field.$el.find('label').html(label+"*");
 						}
 					}
 				}