You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sr...@apache.org on 2014/05/30 22:46:13 UTC

git commit: Fix for app ui not showing

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 <sg...@hortonworks.com>
Authored: Fri May 30 13:45:51 2014 -0700
Committer: Srimanth Gunturi <sg...@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