We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b3f12 commit 73f05feCopy full SHA for 73f05fe
modules/help_editor/js/help_editor_helper.js
@@ -1,3 +1,5 @@
1
+import swal from 'sweetalert2';
2
+
3
$(document).ready(function(){
4
$("input[name=preview]").click(function(e) {
5
if($('div.help-content').length) {
@@ -65,7 +67,7 @@ $("#save-help").click(function(e) {
65
67
helpID: helpID ? helpID : '',
66
68
},
69
success: function() {
- swal({
70
+ swal.fire({
71
title: "Content update successful!",
72
type: "success",
73
showCancelButton: true,
@@ -80,7 +82,7 @@ $("#save-help").click(function(e) {
80
82
81
83
error: function(xhr, errorCode, errorMsg) {
84
console.error(xhr);
85
86
title: "Content update unsuccessful.",
87
text: errorCode + ": " + xhr.status + " " + errorMsg,
88
type: "error",
0 commit comments