cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject git commit: multiEdit: support hiding fields dynamically via dataProvider
Date Thu, 09 Aug 2012 22:54:29 GMT
Updated Branches:
  refs/heads/autoscale 6617e152d -> 2406139ff


multiEdit: support hiding fields dynamically via dataProvider

If 'hideFields' array is passed to .success(), then hide the field IDs
specified.


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

Branch: refs/heads/autoscale
Commit: 2406139ff921711b24fed6d3cf518b16016c808e
Parents: 6617e15
Author: Brian Federle <brian.federle@citrix.com>
Authored: Thu Aug 9 15:51:56 2012 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Thu Aug 9 15:54:15 2012 -0700

----------------------------------------------------------------------
 ui/scripts/network.js              |    3 ++-
 ui/scripts/ui/widgets/multiEdit.js |    6 ++++++
 2 files changed, 8 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2406139f/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index fbd09ce..e89faad 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -2360,7 +2360,8 @@
                           });
 
                           args.response.success({
-                            data: loadBalancerData
+                            data: loadBalancerData,
+                            //hideFields: ['autoScale']
                           });
                         }
                       });

http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/2406139f/ui/scripts/ui/widgets/multiEdit.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/multiEdit.js b/ui/scripts/ui/widgets/multiEdit.js
index bc970ff..e1d17dd 100644
--- a/ui/scripts/ui/widgets/multiEdit.js
+++ b/ui/scripts/ui/widgets/multiEdit.js
@@ -969,6 +969,12 @@
               ).appendTo($dataBody);
             });
 
+            if (args.hideFields) {
+              $(args.hideFields).each(function() {
+                $multi.find('th.' + this + ',td.' + this).hide();
+              });
+            }
+
             _medit.refreshItemWidths($multi);
           },
           error: cloudStack.dialog.error


Mime
View raw message