Remove old openBanWindow function
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -39,26 +39,6 @@
|
|||||||
{{block.super}}
|
{{block.super}}
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
/*
|
|
||||||
function openBanWindow(e, banUrl) {
|
|
||||||
e.preventDefault();
|
|
||||||
let banUrl = e.target.getAttribute("data-ban-url");
|
|
||||||
if (window.banWindow) {
|
|
||||||
window.banWindow.close();
|
|
||||||
}
|
|
||||||
window.banWindow = new WinBox("New ban", {
|
|
||||||
url: banUrl,
|
|
||||||
x: "center",
|
|
||||||
y: "center",
|
|
||||||
root: document.body,
|
|
||||||
onclose: function(force) {
|
|
||||||
window.top.banWindow = null;
|
|
||||||
window.top.location.reload();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
function onLoad(e) {
|
function onLoad(e) {
|
||||||
window.banWindow = null;
|
window.banWindow = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user