Skip to content

Commit 2fee251

Browse files
committed
Add JavaScript error handling in blog plugins fc2blog#140
1 parent 09270be commit 2fee251

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/twig_templates/admin/blog_plugins/index.twig

+5-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@
7777
display: $(this).prop('checked') ? 1 : 0,
7878
sig: "{{ sig }}"
7979
}),
80-
cache: false
80+
cache: false,
81+
error: function (data, status, xhr){
82+
alert("エラーが発生しました、ページをリロードしてやり直してください。\n" +
83+
"An error occurred, please reload page and try again.");
84+
}
8185
});
8286
});
8387

0 commit comments

Comments
 (0)