You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/08/27 16:43:40 UTC
git commit: AMBARI-3035. Install Wizard: error on Review step.
(Andrii Babiichuk via yusaku)
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 <yu...@hortonworks.com>
Authored: Tue Aug 27 17:43:12 2013 +0300
Committer: Yusaku Sako <yu...@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;
}