AMBARI-6391. Clear selection on host page does not remove selection if you use pagination (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9f3ba79e Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9f3ba79e Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9f3ba79e Branch: refs/heads/branch-1.6.1 Commit: 9f3ba79eb8ea7b387feb56d043792733d01cf8b2 Parents: 9a9aca7 Author: Alex Antonenko <[email protected]> Authored: Fri Jul 4 18:11:46 2014 +0300 Committer: Alex Antonenko <[email protected]> Committed: Fri Jul 4 19:32:58 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/views/main/host.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/9f3ba79e/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 2333d14..e9c90fd 100644 --- a/ambari-web/app/views/main/host.js +++ b/ambari-web/app/views/main/host.js @@ -331,6 +331,7 @@ App.MainHostView = App.TableView.extend(App.TableServerProvider, { clearSelection: function() { this.get('pageContent').setEach('selected', false); this.set('selectAllHosts', false); + App.db.setSelectedHosts(this.get('controller.name'), []); this.get('selectedHosts').clear(); this.filterSelected(); },
