mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-28 01:10:51 +01:00
move are you sure prompt to the js file
This commit is contained in:
parent
fe8fa0da8a
commit
1a780ce9cb
@ -129,6 +129,7 @@ var banlist_init = function(token, my_boards, inMod) {
|
||||
$(".banform").on("submit", function() { return false; });
|
||||
|
||||
$("#unban").on("click", function() {
|
||||
if (confirm('Are you sure you want to unban the selected IPs?')) {
|
||||
$(".banform .hiddens").remove();
|
||||
$("<input type='hidden' name='unban' value='unban' class='hiddens'>").appendTo(".banform");
|
||||
|
||||
@ -137,6 +138,7 @@ var banlist_init = function(token, my_boards, inMod) {
|
||||
});
|
||||
|
||||
$(".banform").off("submit").submit();
|
||||
}
|
||||
});
|
||||
|
||||
if (device_type == 'desktop') {
|
||||
|
Loading…
Reference in New Issue
Block a user