Skip to content

Commit

Permalink
Fixed "those players" (Issue #38)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruzya committed Dec 23, 2016
1 parent a455756 commit bcb3741
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web_upload/scripts/sourcebans.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,7 @@ function RemoveBan(id, key, page, name, confirm, bulk)
function UnbanBan(id, key, page, name, popup, bulk)
{
if(popup==1) {
//ShowBox('Unban Reason', '<b>Please give a short comment, why you are going to unban '+(bulk=="true"?"those players":"\'"+ name +"\'")+'!</b><br><textarea rows="3" cols="40" name="ureason" id="ureason" style="overflow:auto;"></textarea><br><div id="ureason.msg" class="badentry"></div>', 'blue', '', true);
ShowBox('Разбан', '<div class="form-group has-warning has-feedback"><label class="control-label f-14" for="inputWarning2">Пожалуйста, напишите краткий комментарий, почему вы собираетесь разбанить игрока '+(bulk=="true"?"those players":"\'"+ name +"\'")+'!</label><div class="fg-line"><input type="text" class="form-control" id="inputWarning2" name="ureason"></div><span class="zmdi zmdi-alert-triangle form-control-feedback"></span><p class="help-block" id="ureason.msg"></p></div>', 'blue', '', true);
ShowBox('Разбан', '<div class="form-group has-warning has-feedback"><label class="control-label f-14" for="inputWarning2">Пожалуйста, напишите краткий комментарий, почему вы собираетесь разбанить '+(bulk=="true"?"этих игроков":"игрока \'"+ name +"\'")+'!</label><div class="fg-line"><input type="text" class="form-control" id="inputWarning2" name="ureason"></div><span class="zmdi zmdi-alert-triangle form-control-feedback"></span><p class="help-block" id="ureason.msg"></p></div>', 'blue', '', true);
$('dialog-control').setHTML('<input type="button" onclick="if (UnbanBan(\''+id+'\', \''+key+'\', \''+page+'\', \''+addslashes(name.replace(/\'/g,'\\\''))+'\', \'0\''+(bulk=="true"?", \'true\'":"")+')) document.getElementById(\'uban\').disabled = true;" name="uban" class="btn btn-lg btn-primary waves-effect" id="uban" value="Разбанить" />');
} else if(popup==0) {
if(page != "")
Expand Down

0 comments on commit bcb3741

Please sign in to comment.