1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-15 12:29:16 +01:00

Disable to clicking outside or pressing escape to close sign up modal

This commit is contained in:
Du Peng 2022-05-20 15:58:49 +02:00
parent c404424fb4
commit 7067757f38
3 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@
- Fix a bug: Event reservation calendar encoding in mail
- Fix a bug: Missing of description of PlanCategory migration
- Fix a bug: Unable to create plans for all group
- Disable to clicking outside or pressing escape to close sign up modal
## v5.4.0 2022 May 12

View File

@ -75,6 +75,8 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
} else {
return $uibModal.open({
templateUrl: '/shared/signupModal.html',
backdrop: 'static',
keyboard: false,
size: 'md',
resolve: {
settingsPromise: ['Setting', function (Setting) {
@ -189,6 +191,10 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
});
});
};
$scope.dismiss = function () {
$uibModalInstance.dismiss('cancel');
};
}]
}).result.finally(null).then(function (res) {
// when the account was created successfully, set the session to the newly created account

View File

@ -1,5 +1,6 @@
<div class="modal-header">
<img ng-src="{{logoBlack.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="modal-logo"/>
<i class="fa fa-times close-modal-button" ng-click="dismiss()"></i>
<h1 translate>{{ 'app.public.common.create_your_account' }}</h1>
</div>
<div class="">