fix delete form modal in /forms view
This commit is contained in:
parent
ca0cd1114e
commit
878c6a38b5
@ -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'];
|
||||
|
||||
@ -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: {
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user