incubator-cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wid...@apache.org
Subject [41/50] git commit: Add tags to edit PF dialog
Date Thu, 26 Jul 2012 21:05:07 GMT
Add tags to edit PF dialog


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

Branch: refs/heads/rbd
Commit: 06101ea27ea5668c37c2b584e32f00cf21ed6692
Parents: 17ac3a7
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Jul 24 12:12:09 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Jul 24 12:24:25 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/06101ea2/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index 56a2281..96446df 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -2414,6 +2414,9 @@
                         addButton: true
                       }
                     },
+
+                    tags: cloudStack.api.tags({ resourceType: 'PortForwardingRule', contextId:
'multiRule' }),
+
                     add: {
                       label: 'label.add.vm',
                       action: function(args) {
@@ -2447,6 +2450,19 @@
                       }
                     },
                     actions: {
+                      edit: {
+                        label: 'label.edit',
+
+                        // Blank -- edit is just for tags right now
+                        action: function(args) {
+                          args.response.success({
+                            notification: {
+                              label: 'label.edit.pf',
+                              poll: function(args) { args.complete(); }
+                            }
+                          });
+                        }
+                      },
                       destroy: {
                         label: 'label.remove.pf',
                         action: function(args) {


Mime
View raw message