cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: updated refs/heads/master to 8cf5192
Date Mon, 16 Jun 2014 21:08:02 GMT
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 <bfederle@gmail.com>
Authored: Mon Jun 16 14:04:49 2014 -0700
Committer: Brian Federle <bfederle@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(


Mime
View raw message