-/*jslint confusion: true*/
-/* reload is function and string,
- * height is number and string,
- * hidden is bool and string,
- * bind is function and object,
- * callback is function and string
- */
Ext.define('pmg-ldap-config', {
extend: 'Ext.data.Model',
fields: ['profile', 'server1', 'server2', 'comment',
values.disable = values.enable ? 0 : 1;
delete values.enable;
+ // do not send empty password
+ if (values.bindpw === '') {
+ delete values.bindpw;
+ }
+
return values;
},
xtype: 'textfield',
inputType: 'password',
allowBlank: true,
+ emptyText: gettext('Unchanged'),
name: 'bindpw',
fieldLabel: gettext('Password'),
},
reload: function() {
- var me = this.getView();
- me.getStore().load();
- me.fireEvent('load', me);
+ let view = this.getView();
+ view.getStore().load();
+ view.fireEvent('load', view);
},
sync: function() {
model: 'pmg-ldap-config',
sorters: [{
property: 'profile',
- order: 'DESC',
+ direction: 'ASC',
}],
},