Repository: cloudstack Updated Branches: refs/heads/master 49aa13e8e -> 8cf5192a6
List view, multiselect: Only reference elements relative to $listView Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8cf5192a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8cf5192a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8cf5192a Branch: refs/heads/master Commit: 8cf5192a6fb56d3acafc7a37ccf4d220811726e0 Parents: 49aa13e Author: Brian Federle <bfede...@gmail.com> Authored: Mon Jun 16 14:04:49 2014 -0700 Committer: Brian Federle <bfede...@gmail.com> Committed: Mon Jun 16 14:07:29 2014 -0700 ---------------------------------------------------------------------- ui/scripts/ui/widgets/listView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8cf5192a/ui/scripts/ui/widgets/listView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index 3d7eeb9..a93c240 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -88,7 +88,7 @@ // Make sure the master checkbox is unselected if (multiSelect) { - $('div.list-view').find('input.multiSelectMasterCheckbox').attr('checked', false); + $listView.find('input.multiSelectMasterCheckbox').attr('checked', false); } var externalLinkAction = action.externalLink; @@ -1078,7 +1078,7 @@ var enabled = checked || (numRowsChecked > 0); toggleMultiSelectActions(enabled); - $('input.multiSelectMasterCheckbox').attr('checked', (numRows === numRowsChecked)); + $listView.find('input.multiSelectMasterCheckbox').attr('checked', (numRows === numRowsChecked)); }); $td.append(