|
|
|
@ -99,7 +99,7 @@ define('admin/manage/users', ['translator'], function (translator) {
|
|
|
|
|
data[cur.name] = cur.value;
|
|
|
|
|
return data;
|
|
|
|
|
}, {});
|
|
|
|
|
var until = formData.length ? (Date.now() + (formData.length * 1000 * 60 * 60 * (parseInt(formData.unit, 10) ? 24 : 1))) : 0;
|
|
|
|
|
var until = formData.length > 0 ? (Date.now() + (formData.length * 1000 * 60 * 60 * (parseInt(formData.unit, 10) ? 24 : 1))) : 0;
|
|
|
|
|
socket.emit('user.banUsers', { uids: uids, until: until, reason: formData.reason }, done('[[admin/manage/users:alerts.ban-success]]', '.ban', true));
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|