diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2014-10-29 19:30:49 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2014-11-20 18:31:40 +0100 |
commit | 031d6c179f289140888ac4fb5fae698ee5bc37f3 (patch) | |
tree | c88ed3ace5af66de2cc8c0da5c5cca4c3ea97d93 /apps/user_ldap/js | |
parent | 0e6d47123a9b47b977b821bd8fbeb92b3c8893a1 (diff) | |
download | nextcloud-server-031d6c179f289140888ac4fb5fae698ee5bc37f3.tar.gz nextcloud-server-031d6c179f289140888ac4fb5fae698ee5bc37f3.zip |
better readbility, no effective changes
Diffstat (limited to 'apps/user_ldap/js')
-rw-r--r-- | apps/user_ldap/js/ldapFilter.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/user_ldap/js/ldapFilter.js b/apps/user_ldap/js/ldapFilter.js index 4db8555f639..63baec24ecc 100644 --- a/apps/user_ldap/js/ldapFilter.js +++ b/apps/user_ldap/js/ldapFilter.js @@ -159,17 +159,17 @@ LdapFilter.prototype.findFeatures = function() { * resolving the passed status variable will fire up counting * @param {object} status an instance of $.Deferred */ -LdapFilter.prototype.beforeUpdateCount = function(status) { - return LdapWizard.runDetectors(this.target, function() { +LdapFilter.prototype.beforeUpdateCount = function() { + var status = $.Deferred(); + LdapWizard.runDetectors(this.target, function() { status.resolve(); }); + return status; }; LdapFilter.prototype.updateCount = function(doneCallback) { - var beforeUpdateCountDone = $.Deferred(); - this.beforeUpdateCount(beforeUpdateCountDone); var filter = this; - $.when(beforeUpdateCountDone).done(function() { + $.when(this.beforeUpdateCount()).done(function() { if(filter.target === 'User') { LdapWizard.countUsers(doneCallback); } else if (filter.target === 'Group') { |