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/12/18 12:44:46 UTC

ambari git commit: AMBARI-8765 Host Details page: Versions tab is broken. (atkach)

Repository: ambari
Updated Branches:
  refs/heads/trunk 95fe4b028 -> 556f1249a


AMBARI-8765 Host Details page: Versions tab is broken. (atkach)


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

Branch: refs/heads/trunk
Commit: 556f1249a266175a85da26e5bdc3763d55cf1576
Parents: 95fe4b0
Author: Andrii Tkach <at...@hortonworks.com>
Authored: Wed Dec 17 19:35:01 2014 +0200
Committer: Andrii Tkach <at...@hortonworks.com>
Committed: Thu Dec 18 13:43:57 2014 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/table_view.js | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/556f1249/ambari-web/app/views/common/table_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/table_view.js b/ambari-web/app/views/common/table_view.js
index b36dc0b..972ac5b 100644
--- a/ambari-web/app/views/common/table_view.js
+++ b/ambari-web/app/views/common/table_view.js
@@ -76,20 +76,21 @@ App.TableView = Em.View.extend(App.UserPref, {
   /**
    * Do filtering, using saved in the local storage filter conditions
    */
-  willInsertElement:function () {
+  willInsertElement: function () {
     var self = this;
     var name = this.get('controller.name');
     if (!this.get('displayLength')) {
       if (App.db.getDisplayLength(name)) {
-        this.set('displayLength', App.db.getDisplayLength(name));
+        Em.run.next(function () {
+          self.set('displayLength', App.db.getDisplayLength(name));
+          self.initFilters();
+        });
       } else {
-        this.getUserPref(this.displayLengthKey()).complete(function(){
+        this.getUserPref(this.displayLengthKey()).complete(function () {
           self.initFilters();
         });
-        return;
       }
     }
-    this.initFilters();
   },
 
   /**