custom asyncSeries() is gone
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
/* global angular:false */
|
||||
/* global Clipboard:false */
|
||||
/* global asyncForEachParallel:false */
|
||||
/* global asyncSeries:false */
|
||||
/* global $:false */
|
||||
/* global angular */
|
||||
/* global Clipboard */
|
||||
/* global asyncForEachParallel */
|
||||
/* global async */
|
||||
/* global $ */
|
||||
|
||||
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
|
||||
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastUserManager) $location.path('/'); });
|
||||
@@ -167,7 +167,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
|
||||
var groupIds = $scope.useradd.selectedGroups.map(function (g) { return g.id; });
|
||||
var NOOP = function (next) { next(); };
|
||||
|
||||
asyncSeries([
|
||||
async.series([
|
||||
Client.setGroups.bind(Client, newUserInfo.id, groupIds),
|
||||
$scope.useradd.sendInvite ? Client.createInvite.bind(Client, newUserInfo.id) : NOOP,
|
||||
$scope.useradd.sendInvite ? Client.sendInvite.bind(Client, newUserInfo.id) : NOOP
|
||||
|
||||
Reference in New Issue
Block a user