Skip to content

Commit

Permalink
fix: alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 committed Sep 27, 2022
1 parent 0a3f300 commit d39362b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/writing.html
Expand Up @@ -319,10 +319,12 @@ <h5 class="portlet__head">Webhook</h5>
success: function (result) {
$('.alert').css("display", "block");
if (result !== "ok") {
$('.alert').addClass("alert-danger")
$('.alert').addClass("alert-danger").removeClass("alert-success")
$('#resultMsg').html(result)
} else {
// ok
$('.alert').addClass("alert-success").removeClass("alert-danger")
$('#resultMsg').html("保存成功")
setTimeout(function(){
$('.alert').css("display", "none");
}, 3000)
Expand Down

0 comments on commit d39362b

Please sign in to comment.