You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by wi...@apache.org on 2012/07/26 23:05:07 UTC

[41/50] git commit: Add tags to edit PF dialog

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 <br...@citrix.com>
Authored: Tue Jul 24 12:12:09 2012 -0700
Committer: Brian Federle <br...@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) {