swal: changed to dedicated version without animation

This commit is contained in:
Marcin Kuzminski 2020-06-23 09:15:44 +02:00
parent b9a819cbfe
commit 449f04af46

View file

@ -547,23 +547,15 @@ var CommentsController = function() {
}
);
successRenderCommit = function (data) {
Swal.fire({
SwalNoAnimation.fire({
html: data,
title: '',
showClass: {
popup: 'swal2-noanimation',
backdrop: 'swal2-noanimation'
},
});
};
failRenderCommit = function () {
Swal.fire({
SwalNoAnimation.fire({
html: 'Error while loading comment',
title: '',
showClass: {
popup: 'swal2-noanimation',
backdrop: 'swal2-noanimation'
},
});
};
_submitAjaxPOST(
@ -937,13 +929,9 @@ var CommentsController = function() {
return;
}
if (old_comment_text == text) {
Swal.fire({
SwalNoAnimation.fire({
title: 'Error',
html: _gettext('Comment body should be changed'),
showClass: {
popup: 'swal2-noanimation',
backdrop: 'swal2-noanimation'
},
});
return;
}