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

git commit: AMBARI-4821 Navigation from Hosts page to HostDetailsPage breaks occasionally. (atkach)

Repository: ambari
Updated Branches:
  refs/heads/trunk c04360ddc -> a9da44984


AMBARI-4821 Navigation from Hosts page to HostDetailsPage breaks occasionally. (atkach)


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

Branch: refs/heads/trunk
Commit: a9da4498459a8b4e731a83665b8f0bb5f9bc1fd7
Parents: c04360d
Author: atkach <at...@hortonworks.com>
Authored: Tue Feb 25 17:46:24 2014 +0200
Committer: atkach <at...@hortonworks.com>
Committed: Tue Feb 25 17:46:24 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/views/main/host.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/a9da4498/ambari-web/app/views/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host.js b/ambari-web/app/views/main/host.js
index 9ff5de1..9b530ed 100644
--- a/ambari-web/app/views/main/host.js
+++ b/ambari-web/app/views/main/host.js
@@ -352,6 +352,8 @@ App.MainHostView = App.TableView.extend({
      * Update <code>hostsCount</code> in current category
      */
     updateOnce: function() {
+      //skip update when view is destroyed
+      if(!this.get('view.content')) return;
       var statusString = this.get('healthStatusValue');
       if (this.get('isHealthStatus')) {
         if (statusString == "") {