##// END OF EJS Templates
swal: changed to dedicated version without animation
marcink -
r4402:78745d18 default
parent child Browse files
Show More
@@ -547,23 +547,15 b' var CommentsController = function() {'
547 }
547 }
548 );
548 );
549 successRenderCommit = function (data) {
549 successRenderCommit = function (data) {
550 Swal.fire({
550 SwalNoAnimation.fire({
551 html: data,
551 html: data,
552 title: '',
552 title: '',
553 showClass: {
554 popup: 'swal2-noanimation',
555 backdrop: 'swal2-noanimation'
556 },
557 });
553 });
558 };
554 };
559 failRenderCommit = function () {
555 failRenderCommit = function () {
560 Swal.fire({
556 SwalNoAnimation.fire({
561 html: 'Error while loading comment',
557 html: 'Error while loading comment',
562 title: '',
558 title: '',
563 showClass: {
564 popup: 'swal2-noanimation',
565 backdrop: 'swal2-noanimation'
566 },
567 });
559 });
568 };
560 };
569 _submitAjaxPOST(
561 _submitAjaxPOST(
@@ -937,13 +929,9 b' var CommentsController = function() {'
937 return;
929 return;
938 }
930 }
939 if (old_comment_text == text) {
931 if (old_comment_text == text) {
940 Swal.fire({
932 SwalNoAnimation.fire({
941 title: 'Error',
933 title: 'Error',
942 html: _gettext('Comment body should be changed'),
934 html: _gettext('Comment body should be changed'),
943 showClass: {
944 popup: 'swal2-noanimation',
945 backdrop: 'swal2-noanimation'
946 },
947 });
935 });
948 return;
936 return;
949 }
937 }
General Comments 0
You need to be logged in to leave comments. Login now