function header__autorization__open__event () {
var modal__btns = document.getElementsByClassName("modal__btn");
var index;
var modal__btn;
if (modal__btns !== null) {
for (index = 0; index < modal__btns.length; index++) {
modal__btn = modal__btns[index];
<b>modal__btn.removeEventListener(click', function () {modal(this.id)})</b>,
modal__btn.addEventListener('click', function () {modal(this.id)});
}
}
}
modal__btn.addEventListener('click', function () {modal(this.id)});