fix delete form modal in /forms view

This commit is contained in:
David Baldwynn 2017-03-06 12:39:29 -08:00
parent ca0cd1114e
commit 878c6a38b5
No known key found for this signature in database
GPG Key ID: 15D1C13202224A9B
3 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,6 @@ angular.module('core').controller('HeaderController', ['$rootScope', '$scope', '
$scope.user = $rootScope.user = Auth.ensureHasCurrentUser(User);
console.log(Auth.ensureHasCurrentUser(User));
$scope.authentication = $rootScope.authentication = Auth;
$rootScope.languages = $scope.languages = ['en', 'fr', 'es', 'it', 'de'];

View File

@ -28,8 +28,7 @@ angular.module('forms').controller('ListFormsController', ['$rootScope', '$scope
$scope.cancel = $scope.cancelDeleteModal;
$scope.deleteForm = function() {
$scope.removeForm(items.formIndex);
$scope.$parent.removeForm(items.formIndex);
}
},
resolve: {

View File

@ -19,7 +19,7 @@
</div>
<div class="modal-footer">
<input type="text" style="width:100%" data-ng-model="deleteConfirm" class="input-block" autofocus required aria-label="Type in the name of the form to confirm that you want to delete this form.">
<button type="submit" ng-click="deleteForm" class="btn btn-block btn-danger" ng-disabled="content.currFormTitle != deleteConfirm">
<button type="submit" ng-click="deleteForm()" class="btn btn-block btn-danger" ng-disabled="content.currFormTitle != deleteConfirm">
{{ 'I_UNDERSTAND' | translate }}
</button>
</div>