Frontend: Fix codacy errors
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
committed by
Julius Härtl
parent
28d6f4196e
commit
8cb95c4105
@@ -146,7 +146,7 @@ app.controller('CardController', function ($scope, $rootScope, $routeParams, $lo
|
|||||||
$scope.showAssignUser = function() {
|
$scope.showAssignUser = function() {
|
||||||
$scope.status.showAssignUser = true;
|
$scope.status.showAssignUser = true;
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
$("#assignUserSelect").find('a').click();
|
$('#assignUserSelect').find('a').click();
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -98,8 +98,9 @@ app.factory('CardService', function(ApiService, $http, $q){
|
|||||||
CardService.prototype.assignUser = function (card, user) {
|
CardService.prototype.assignUser = function (card, user) {
|
||||||
var deferred = $q.defer();
|
var deferred = $q.defer();
|
||||||
var self = this;
|
var self = this;
|
||||||
if (self.getCurrent().assignedUsers === null)
|
if (self.getCurrent().assignedUsers === null) {
|
||||||
self.getCurrent().assignedUsers = [];
|
self.getCurrent().assignedUsers = [];
|
||||||
|
}
|
||||||
$http.post(this.baseUrl + '/' + card.id + '/assign', {'userId': user}).then(function (response) {
|
$http.post(this.baseUrl + '/' + card.id + '/assign', {'userId': user}).then(function (response) {
|
||||||
self.getCurrent().assignedUsers.push(response.data);
|
self.getCurrent().assignedUsers.push(response.data);
|
||||||
deferred.resolve(response.data);
|
deferred.resolve(response.data);
|
||||||
|
|||||||
Reference in New Issue
Block a user