You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by xi...@apache.org on 2014/06/25 02:41:09 UTC

git commit: AMBARI-6265. Have spinners instead of charts at Dashboard and Service tabs on IE 11.(xiwang)

Repository: ambari
Updated Branches:
  refs/heads/trunk b37a3624c -> ccbdc0457


AMBARI-6265. Have spinners instead of charts at Dashboard and Service tabs on IE 11.(xiwang)


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

Branch: refs/heads/trunk
Commit: ccbdc045710aedb9eba76db0615197ea8c23f990
Parents: b37a362
Author: Xi Wang <xi...@apache.org>
Authored: Tue Jun 24 17:04:26 2014 -0700
Committer: Xi Wang <xi...@apache.org>
Committed: Tue Jun 24 17:40:36 2014 -0700

----------------------------------------------------------------------
 ambari-web/app/views/common/chart/linear_time.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ccbdc045/ambari-web/app/views/common/chart/linear_time.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/chart/linear_time.js b/ambari-web/app/views/common/chart/linear_time.js
index a37133d..d26bcc6 100644
--- a/ambari-web/app/views/common/chart/linear_time.js
+++ b/ambari-web/app/views/common/chart/linear_time.js
@@ -403,7 +403,10 @@ App.ChartLinearTimeView = Ember.View.extend({
           name: timeUnitSeconds / 240 + ' minute',
           seconds: timeUnitSeconds / 4,
           formatter: function (d) {
-            return d.toLocaleString().match(/(\d+:\d+):/)[1];
+            // format locale specific time
+            var minutes = d.getMinutes() > 9 ? "" + d.getMinutes() : "0" + d.getMinutes();
+            var hours = d.getHours() > 9 ? "" + d.getHours() : "0" + d.getHours();
+            return hours + ":" + minutes;
           }
         };
     }