Clear user remove form

This commit is contained in:
Johannes Zellner
2016-01-18 16:25:42 +01:00
parent c5b8b0e3db
commit 226501d103

View File

@@ -98,7 +98,13 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
$scope.showUserRemove = function (userInfo) {
$scope.userremove.error.username = null;
$scope.userremove.error.password = null;
$scope.userremove.username = '';
$scope.userremove.password = '';
$scope.userremove.userInfo = userInfo;
$scope.userremove_form.$setPristine();
$scope.userremove_form.$setUntouched();
$('#userRemoveModal').modal('show');
};