Skip to content
Snippets Groups Projects
Commit f630f0fd authored by Benjamin Kott's avatar Benjamin Kott Committed by Markus Klein
Browse files

[TASK] Adjust loading animation of modal windows

Use TYPO3 spinner which is properly centered.

Releases: master, 8.7
Resolves: #83218
Change-Id: Ieec359ee0bc05ebb75724b963edaf1dc5bbab0a8
Reviewed-on: https://review.typo3.org/54929


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: default avatarTymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
parent c955b4dc
Branches
Tags
No related merge requests found
......@@ -96,9 +96,13 @@ $modal-danger-border: $btn-danger-border;
transition: margin-top 0.1s ease-in;
border: none;
.loadmessage {
text-align: center;
color: $gray-darker;
.modal-loading {
position: absolute;
display: flex;
height: 100%;
width: 100%;
justify-content: center;
align-items: center;
}
}
......
source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -285,7 +285,9 @@ define(['jquery',
}
Modal.currentModal.trigger('modal-loaded');
}, 'html');
currentModal.find(Modal.identifiers.body).html('<p class="loadmessage"><i class="fa fa-spinner fa-spin fa-5x "></i></p>');
Icons.getIcon('spinner-circle', Icons.sizes.default, null, null, Icons.markupIdentifiers.inline).done(function(icon) {
currentModal.find(Modal.identifiers.body).html('<div class="modal-loading">' + icon + '</div>');
});
} else if (type === 'iframe') {
currentModal.find(Modal.identifiers.body).append(
$('<iframe />', { src: content, 'name': 'modal_frame', 'class': 'modal-iframe t3js-modal-iframe' })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment