From 449f04af4602c86f8fb9ee09717eecf14d31fd8e Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 23 Jun 2020 09:15:44 +0200 Subject: [PATCH] swal: changed to dedicated version without animation --- rhodecode/public/js/src/rhodecode/comments.js | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/rhodecode/public/js/src/rhodecode/comments.js b/rhodecode/public/js/src/rhodecode/comments.js index 7034fc26..54afe065 100644 --- a/rhodecode/public/js/src/rhodecode/comments.js +++ b/rhodecode/public/js/src/rhodecode/comments.js @@ -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; }