cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtutkow...@apache.org
Subject [14/50] git commit: updated refs/heads/sf-plugins to bcf1c72
Date Tue, 28 Jul 2015 20:15:00 GMT
Conditionally show the Account field in the Add Shared Volume window


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

Branch: refs/heads/sf-plugins
Commit: 8eea9c96d004ba9b050e03a50f16f58802f6d014
Parents: 78366e5
Author: Mike Tutkowski <mike.tutkowski@solidfire.com>
Authored: Tue Jul 7 23:37:51 2015 -0600
Committer: CloudStack <cloudstack@cloudstack-virtual-machine.(none)>
Committed: Tue Jul 28 13:42:41 2015 -0600

----------------------------------------------------------------------
 ui/plugins/sfSharedVolume/sfSharedVolume.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8eea9c96/ui/plugins/sfSharedVolume/sfSharedVolume.js
----------------------------------------------------------------------
diff --git a/ui/plugins/sfSharedVolume/sfSharedVolume.js b/ui/plugins/sfSharedVolume/sfSharedVolume.js
index f8f3aaf..d935b04 100644
--- a/ui/plugins/sfSharedVolume/sfSharedVolume.js
+++ b/ui/plugins/sfSharedVolume/sfSharedVolume.js
@@ -108,12 +108,19 @@
                   validation: {
                     required: true
                   },
+                  isHidden: true,
                   select: function(args) {
                     $.ajax({
                       url: createURL("listAccounts"),
                       dataType: "json",
                       async: true,
                       success: function(json) {
+                        if (isAdmin()) {
+                          var $form = $(this).closest('form');
+
+                          $form.find('.form-item[rel=account]').show();
+                        }
+
                         var accountObjs = json.listaccountsresponse.account;
 
                         args.response.success({


Mime
View raw message