cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject [1/2] git commit: updated refs/heads/master to f59ea14
Date Wed, 27 Mar 2013 10:36:26 GMT
Updated Branches:
  refs/heads/master 99ea4011b -> f59ea1492


CLOUDSTACK-1540:LDAP: Integrate ldapremove functionaly in the UI


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

Branch: refs/heads/master
Commit: 4d5f10585e44cd7f0f8c34e1eff3c15f10259879
Parents: 359b931
Author: Pranav Saxena <pranav.saxena@citrix.com>
Authored: Wed Mar 27 16:04:09 2013 +0530
Committer: Pranav Saxena <pranav.saxena@citrix.com>
Committed: Wed Mar 27 16:04:09 2013 +0530

----------------------------------------------------------------------
 ui/scripts/globalSettings.js |   60 +++++++++++++++++++++++++++++++++++++
 1 files changed, 60 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4d5f1058/ui/scripts/globalSettings.js
----------------------------------------------------------------------
diff --git a/ui/scripts/globalSettings.js b/ui/scripts/globalSettings.js
index 4c96b5f..8659652 100644
--- a/ui/scripts/globalSettings.js
+++ b/ui/scripts/globalSettings.js
@@ -116,6 +116,66 @@
                });
            },
 
+          detailView: {
+            name: 'label.details',
+              actions: {
+
+              // Remove LDAP
+              remove: {
+                label: 'Remove LDAP',
+                messages: {
+                  notification: function(args) {
+                    return 'Event Deleted';
+                  },
+                  confirm: function() {
+                    return 'Are you sure you want to delete the LDAP configuration?';
+                  }
+                },
+                action: function(args) {
+
+                  $.ajax({
+                       url:createURL("ldapRemove"  ),
+                       success:function(json){
+
+                  args.response.success();
+
+                       }
+
+                       });
+                    $(window).trigger('cloudStack.fullRefresh');
+
+                }
+              }
+          },
+
+           tabs:{
+
+               details: {
+                title: 'LDAP Configuration Details',
+                fields: [
+                  {
+                    hostname: { label: 'Hostname' },
+                    description: { label: 'label.description' },
+                    ssl : { label: 'SSL'}
+                  }
+                ],
+                dataProvider: function(args) {
+                                                                        $.ajax({
+                                                                                url: createURL("ldapConfig&listAll=true"
),
+                                                                                dataType:
"json",
+                                                                                async: true,
+                                                                                success:
function(json) {
+                                                                                        var
item = json.ldapconfigresponse.ldapconfig;
+                                                                                        args.response.success({data:
item});
+                                                                                }
+                                                                        });             
                                                                                         
+                                                                }
+             
+                                                        }
+
+            }
+       }, 
+
           actions: {
                add:{
 


Mime
View raw message