cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject [03/50] [abbrv] git commit: updated refs/heads/marvin_refactor to 7c439fe
Date Mon, 29 Apr 2013 13:13:41 GMT
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/marvin_refactor
Commit: 72da1ae96960bc89f64a50bbcb9c9c6ac97662d2
Parents: 35681f3
Author: Brian Federle <brian.federle@citrix.com>
Authored: Mon Apr 22 11:26:24 2013 -0700
Committer: Brian Federle <brian.federle@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;
       }
 


Mime
View raw message