]> git.proxmox.com Git - pmg-gui.git/blobdiff - js/LDAPUserSelector.js
configuration: options: adapt to new advanced statistic filter default
[pmg-gui.git] / js / LDAPUserSelector.js
index eeb68d0962a914ff5487c0c32ea632977b6572e3..6170b1028af0f1355751d991a106a33b7a6c44f6 100644 (file)
@@ -3,16 +3,16 @@ Ext.define('PMG.LDAPUserSelector', {
     alias: 'widget.pmgLDAPUserSelector',
 
     profile: undefined,
-    
+
     store: {
-       fields: [ 'account', 'pmail', 'dn' ],
+       fields: ['account', 'pmail', 'dn'],
        filterOnLoad: true,
        sorters: [
            {
-               property : 'account',
-               direction: 'ASC'
-           }
-       ]
+               property: 'account',
+               direction: 'ASC',
+           },
+       ],
     },
 
     valueField: 'account',
@@ -26,21 +26,21 @@ Ext.define('PMG.LDAPUserSelector', {
                header: gettext('Account'),
                dataIndex: 'account',
                hideable: false,
-               width: 100
+               width: 100,
            },
            {
-               header: gettext('EMail'),
+               header: gettext('E-Mail'),
                dataIndex: 'pmail',
-               width: 150
+               width: 150,
            },
            {
                header: 'DN',
                dataIndex: 'dn',
-               width: 200
-           }
-       ]
+               width: 200,
+           },
+       ],
     },
-    
+
     setProfile: function(profile, force) {
        var me = this;
 
@@ -54,20 +54,20 @@ Ext.define('PMG.LDAPUserSelector', {
 
        me.store.setProxy({
            type: 'proxmox',
-           url: '/api2/json/config/ldap/' + me.profile + '/users'
+           url: '/api2/json/config/ldap/' + me.profile + '/users',
        });
 
        me.store.load();
     },
-    
+
     initComponent: function() {
        var me = this;
 
        me.callParent();
 
        if (me.profile !== undefined) {
-           me.setProfile(profile, true);
+           me.setProfile(me.profile, true);
        }
-    }
+    },
 });