Repository: ambari
Updated Branches:
  refs/heads/trunk 147955bb3 -> a64a37055


AMBARI-7902 Admin View: Provide identical cluster name validation in Manage. 
(ababiichuk)


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

Branch: refs/heads/trunk
Commit: a64a370551f128c7230d26f23081aeb7b642485b
Parents: 147955b
Author: aBabiichuk <ababiic...@cybervisiontech.com>
Authored: Wed Oct 22 17:36:58 2014 +0300
Committer: aBabiichuk <ababiic...@cybervisiontech.com>
Committed: Wed Oct 22 18:50:49 2014 +0300

----------------------------------------------------------------------
 .../src/main/resources/ui/admin-web/app/views/leftNavbar.html     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a64a3705/ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html
----------------------------------------------------------------------
diff --git 
a/ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html 
b/ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html
index af09f57..8bc1472 100644
--- a/ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html
+++ b/ambari-admin/src/main/resources/ui/admin-web/app/views/leftNavbar.html
@@ -33,7 +33,8 @@
                   type="text"
                   name="newClusterName"
                   ng-required="true"
-                  ng-pattern="/^[a-zA-Z0-9]*$/"
+                  ng-pattern="/^\w*$/"
+                  ng-trim="false"
                   ng-model="editCluster.name"
                   class="form-control input-sm"
                   tooltip="Only alpha-numeric characters."

Reply via email to