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/12/11 00:22:41 UTC

[2/2] git commit: updated refs/heads/master to a9258ae

List view: Fix context not being passed correctly to header actions pre-filter


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

Branch: refs/heads/master
Commit: 248195fcd78f9441cb8fa6984060fbde2d0c48d4
Parents: 93ba232
Author: Brian Federle <br...@citrix.com>
Authored: Tue Dec 10 15:19:45 2013 -0800
Committer: Brian Federle <br...@citrix.com>
Committed: Tue Dec 10 15:20:39 2013 -0800

----------------------------------------------------------------------
 ui/scripts/ui/widgets/listView.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/248195fc/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 06b8521..d94744d 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -1701,7 +1701,7 @@
             $.each(listViewData.actions, function(actionName, action) {
                 if (!action.isHeader || (
                     action.preFilter && !action.preFilter({
-                        context: listViewData.context ? listViewData.context : cloudStack.context
+                        context: $listView.data('view-args').context ? $listView.data('view-args').context : cloudStack.context
                     })
                 )) return true;