forked from GithubBackups/vichan
move are you sure prompt to the js file
This commit is contained in:
parent
fe8fa0da8a
commit
1a780ce9cb
@ -129,14 +129,16 @@ var banlist_init = function(token, my_boards, inMod) {
|
|||||||
$(".banform").on("submit", function() { return false; });
|
$(".banform").on("submit", function() { return false; });
|
||||||
|
|
||||||
$("#unban").on("click", function() {
|
$("#unban").on("click", function() {
|
||||||
$(".banform .hiddens").remove();
|
if (confirm('Are you sure you want to unban the selected IPs?')) {
|
||||||
$("<input type='hidden' name='unban' value='unban' class='hiddens'>").appendTo(".banform");
|
$(".banform .hiddens").remove();
|
||||||
|
$("<input type='hidden' name='unban' value='unban' class='hiddens'>").appendTo(".banform");
|
||||||
|
|
||||||
$.each(selected, function(e) {
|
$.each(selected, function(e) {
|
||||||
$("<input type='hidden' name='ban_"+e+"' value='unban' class='hiddens'>").appendTo(".banform");
|
$("<input type='hidden' name='ban_"+e+"' value='unban' class='hiddens'>").appendTo(".banform");
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".banform").off("submit").submit();
|
$(".banform").off("submit").submit();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (device_type == 'desktop') {
|
if (device_type == 'desktop') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user