Skip to content

Commit 73f05fe

Browse files
committed
change to help_editor_helper.js
1 parent d6b3f12 commit 73f05fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/help_editor/js/help_editor_helper.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import swal from 'sweetalert2';
2+
13
$(document).ready(function(){
24
$("input[name=preview]").click(function(e) {
35
if($('div.help-content').length) {
@@ -65,7 +67,7 @@ $("#save-help").click(function(e) {
6567
helpID: helpID ? helpID : '',
6668
},
6769
success: function() {
68-
swal({
70+
swal.fire({
6971
title: "Content update successful!",
7072
type: "success",
7173
showCancelButton: true,
@@ -80,7 +82,7 @@ $("#save-help").click(function(e) {
8082
},
8183
error: function(xhr, errorCode, errorMsg) {
8284
console.error(xhr);
83-
swal({
85+
swal.fire({
8486
title: "Content update unsuccessful.",
8587
text: errorCode + ": " + xhr.status + " " + errorMsg,
8688
type: "error",

0 commit comments

Comments
 (0)