incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject git commit: AMBARI-3035. Install Wizard: error on Review step. (Andrii Babiichuk via yusaku)
Date Tue, 27 Aug 2013 14:43:40 GMT
Updated Branches:
  refs/heads/trunk 1220239dc -> 6f5b24fbd


AMBARI-3035. Install Wizard: error on Review step. (Andrii Babiichuk via yusaku)


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

Branch: refs/heads/trunk
Commit: 6f5b24fbd7a0ee60bc59f396b20ac661ac0ecc3d
Parents: 1220239
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Tue Aug 27 17:43:12 2013 +0300
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Tue Aug 27 17:43:12 2013 +0300

----------------------------------------------------------------------
 ambari-web/app/utils/config.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/6f5b24fb/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index 06a7f0e..7e65754 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -928,7 +928,7 @@ App.config = Em.Object.create({
       case 'password':
         break;
       default:
-        rez = value.toString().replace(/(\s+$)/g, '');
+        rez = (value instanceof String) ? value.replace(/(\s+$)/g, '') : value;
     }
     return (rez == '') ? value : rez;
   }


Mime
View raw message