Skip to content

Commit

Permalink
Add JavaScript error handling in blog plugins fc2blog#140
Browse files Browse the repository at this point in the history
  • Loading branch information
uzulla committed Feb 17, 2021
1 parent 09270be commit 2fee251
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/twig_templates/admin/blog_plugins/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@
display: $(this).prop('checked') ? 1 : 0,
sig: "{{ sig }}"
}),
cache: false
cache: false,
error: function (data, status, xhr){
alert("エラーが発生しました、ページをリロードしてやり直してください。\n" +
"An error occurred, please reload page and try again.");
}
});
});
Expand Down

0 comments on commit 2fee251

Please sign in to comment.