ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From srima...@apache.org
Subject git commit: Fix for app ui not showing
Date Fri, 30 May 2014 20:46:13 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-1.6.0.slider 0f3ab01a8 -> b524dd031


Fix for app ui not showing


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

Branch: refs/heads/branch-1.6.0.slider
Commit: b524dd031fe9319bd17eca0b1beed9b80d3447ce
Parents: 0f3ab01
Author: Srimanth Gunturi <sgunturi@hortonworks.com>
Authored: Fri May 30 13:45:51 2014 -0700
Committer: Srimanth Gunturi <sgunturi@hortonworks.com>
Committed: Fri May 30 13:45:51 2014 -0700

----------------------------------------------------------------------
 .../views/slider/src/main/resources/ui/app/helpers/helper.js  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b524dd03/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js b/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
index 1fbfaf9..7d3363f 100644
--- a/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
+++ b/contrib/views/slider/src/main/resources/ui/app/helpers/helper.js
@@ -75,6 +75,11 @@ App.registerBoundHelper('formatWordBreak', Em.View.extend({
    * @type {string}
    */
   result: function() {
-    return this.get('content') && this.get('content').replace(/\//g, '/<wbr />').replace(/\./g,
'/.<wbr />');
+    var content = this.get('content');
+    if (typeof content == "string") {
+      return content
+          && content.replace(/\//g, '/<wbr />').replace(/\./g, '.<wbr />');
+    }
+    return content;
   }.property('content')
 }));
\ No newline at end of file


Mime
View raw message