ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From atk...@apache.org
Subject git commit: AMBARI-6097 filtering hosts causes pagination number to go negative. (Max Shepel via atkach)
Date Thu, 12 Jun 2014 11:32:24 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 778540f89 -> 5f6064664


AMBARI-6097 filtering hosts causes pagination number to go negative. (Max Shepel via atkach)


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

Branch: refs/heads/trunk
Commit: 5f60646641ecde596e40c630cd70b760907d011c
Parents: 778540f
Author: atkach <atkach@hortonworks.com>
Authored: Thu Jun 12 14:27:38 2014 +0300
Committer: atkach <atkach@hortonworks.com>
Committed: Thu Jun 12 14:27:38 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/mappers/hosts_mapper.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5f606466/ambari-web/app/mappers/hosts_mapper.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mappers/hosts_mapper.js b/ambari-web/app/mappers/hosts_mapper.js
index c5e07cd..ff2444d 100644
--- a/ambari-web/app/mappers/hosts_mapper.js
+++ b/ambari-web/app/mappers/hosts_mapper.js
@@ -103,7 +103,7 @@ App.hostsMapper = App.QuickDataMapper.create({
       });
       App.store.loadMany(App.HostComponent, components);
       App.store.loadMany(App.Host, hostsWithFullInfo);
-      App.router.set('mainHostController.filteredCount', json.itemTotal);
+      App.router.set('mainHostController.filteredCount', parseInt(json.itemTotal));
     }
     console.timeEnd('App.hostsMapper execution time');
   }


Mime
View raw message