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

ambari git commit: AMBARI-15709. JS error on Dashboard page while fast switching pages (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk b6e489412 -> 69ea74ead


AMBARI-15709. JS error on Dashboard page while fast switching pages (onechiporenko)


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

Branch: refs/heads/trunk
Commit: 69ea74eadebbed0718f60579b0fdc0b66de6a70b
Parents: b6e4894
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Apr 5 13:36:26 2016 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Apr 5 14:14:07 2016 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/dashboard/widgets.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/69ea74ea/ambari-web/app/views/main/dashboard/widgets.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/dashboard/widgets.js b/ambari-web/app/views/main/dashboard/widgets.js
index 04be7bb..296ce40 100644
--- a/ambari-web/app/views/main/dashboard/widgets.js
+++ b/ambari-web/app/views/main/dashboard/widgets.js
@@ -317,7 +317,9 @@ App.MainDashboardWidgetsView = Em.View.extend(App.UserPref, App.LocalStorage, Ap
     } else {
       // called when first load/refresh/jump back page
       this.getUserPref(this.get('persistKey')).complete(function () {
-        self.setOnLoadVisibleWidgetsComplete.apply(self);
+        if (self.get('state') === 'inDOM') {
+          self.setOnLoadVisibleWidgetsComplete.apply(self);
+        }
       });
     }
   },