You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/04/25 20:08:51 UTC

[33/43] git commit: updated refs/heads/master to 5ce2890

listView, custom checkbox UI: Fix pre-checked checkbox state

Fixes pre-checked checkboxes not having multi-edit-selected class,
preventing item data from being passed to custom widget actions.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/72da1ae9
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/72da1ae9
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/72da1ae9

Branch: refs/heads/master
Commit: 72da1ae96960bc89f64a50bbcb9c9c6ac97662d2
Parents: 35681f3
Author: Brian Federle <br...@citrix.com>
Authored: Mon Apr 22 11:26:24 2013 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Mon Apr 22 11:26:24 2013 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/72da1ae9/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 4bd4a42..f368951 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -780,6 +780,10 @@
             .data('list-view-action-id', actionName)
         );
 
+        if ($td.find('input[type=checkbox]').is(':checked')) {
+          $tr.addClass('multi-edit-selected');
+        }
+
         return true;
       }