Console: Rename all the js init() functions

This commit is contained in:
zzz
2020-05-27 12:35:12 +00:00
parent f8df7eba7f
commit 3fac44874e
5 changed files with 16 additions and 16 deletions

View File

@ -1,14 +1,14 @@
function init()
function initConfigClients()
{
var buttons = document.getElementsByClassName("delete");
for(index = 0; index < buttons.length; index++)
{
var button = buttons[index];
addClickHandler(button);
addCCClickHandler(button);
}
}
function addClickHandler(elem)
function addCCClickHandler(elem)
{
elem.addEventListener("click", function() {
if (!confirm(deleteMessage.replace("{0}", elem.getAttribute("client")))) {
@ -19,5 +19,5 @@ function addClickHandler(elem)
}
document.addEventListener("DOMContentLoaded", function() {
init();
initConfigClients();
}, true);