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 2012/07/25 00:28:00 UTC
[2/11] git commit: Add tags to FW rule multi-edit
Add tags to FW rule multi-edit
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/5126ca95
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/5126ca95
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/5126ca95
Branch: refs/heads/vpc
Commit: 5126ca95e6b12b3fdea8d61a489fd1df580fec33
Parents: bdc376d
Author: Brian Federle <br...@citrix.com>
Authored: Tue Jul 24 15:21:54 2012 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Tue Jul 24 15:26:27 2012 -0700
----------------------------------------------------------------------
ui/scripts/network.js | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/5126ca95/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 92a8319..81a980c 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -1851,6 +1851,9 @@
addButton: true
}
},
+
+ tags: cloudStack.api.tags({ resourceType: 'FirewallRule', contextId: 'multiRule' }),
+
add: {
label: 'label.add',
action: function(args) {
@@ -1878,6 +1881,19 @@
}
},
actions: {
+ edit: {
+ label: 'label.edit',
+
+ // Blank -- edit is just for tags right now
+ action: function(args) {
+ args.response.success({
+ notification: {
+ label: 'Edit firewall rule',
+ poll: function(args) { args.complete(); }
+ }
+ });
+ }
+ },
destroy: {
label: 'label.action.delete.firewall',
action: function(args) {