pheecks ksss

This commit is contained in:
lalka2016 2023-07-23 20:13:17 +03:00
parent 8b857b9f15
commit d247ad11ec

View file

@ -134,7 +134,7 @@
<script> <script>
function banClub() { function banClub() {
let name = {$club->getName()} let name = {$club->getName()}
let body = tr("ban_group_desc", {$club->getName()}) let body = tr("ban_group_desc", escapeHtml(name))
let num = {$club->getId()} let num = {$club->getId()}
body += ` body += `
<br> <br>
@ -143,7 +143,7 @@
<br><input type="checkbox" value="1" id="unsub_everyone" name="unsub_everyone"><label for="unsub_everyone"> ` + tr('unsubscribe_everyoune') + `</label>` <br><input type="checkbox" value="1" id="unsub_everyone" name="unsub_everyone"><label for="unsub_everyone"> ` + tr('unsubscribe_everyoune') + `</label>`
MessageBox({_ban_group} + " " + {$club->getName()}, body, [{_ok}, {_cancel}], [ MessageBox({_ban_group} + " " + escapeHtml(name), body, [{_ok}, {_cancel}], [
(function() { (function() {
let xhr = new XMLHttpRequest() let xhr = new XMLHttpRequest()
xhr.open("POST", "/admin/clubs/id" + num + "/ban" + "?hash=" + {rawurlencode($csrfToken)}, true); xhr.open("POST", "/admin/clubs/id" + num + "/ban" + "?hash=" + {rawurlencode($csrfToken)}, true);