Skip to content
Snippets Groups Projects
Commit 031d6c17 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

better readbility, no effective changes

parent 0e6d4712
No related branches found
No related tags found
No related merge requests found
...@@ -159,17 +159,17 @@ LdapFilter.prototype.findFeatures = function() { ...@@ -159,17 +159,17 @@ LdapFilter.prototype.findFeatures = function() {
* resolving the passed status variable will fire up counting * resolving the passed status variable will fire up counting
* @param {object} status an instance of $.Deferred * @param {object} status an instance of $.Deferred
*/ */
LdapFilter.prototype.beforeUpdateCount = function(status) { LdapFilter.prototype.beforeUpdateCount = function() {
return LdapWizard.runDetectors(this.target, function() { var status = $.Deferred();
LdapWizard.runDetectors(this.target, function() {
status.resolve(); status.resolve();
}); });
return status;
}; };
LdapFilter.prototype.updateCount = function(doneCallback) { LdapFilter.prototype.updateCount = function(doneCallback) {
var beforeUpdateCountDone = $.Deferred();
this.beforeUpdateCount(beforeUpdateCountDone);
var filter = this; var filter = this;
$.when(beforeUpdateCountDone).done(function() { $.when(this.beforeUpdateCount()).done(function() {
if(filter.target === 'User') { if(filter.target === 'User') {
LdapWizard.countUsers(doneCallback); LdapWizard.countUsers(doneCallback);
} else if (filter.target === 'Group') { } else if (filter.target === 'Group') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment