js logs refactoring

This commit is contained in:
Devaev Maxim
2018-11-05 06:20:05 +03:00
parent 9f2c0dd14e
commit 43bbf725b8
6 changed files with 18 additions and 18 deletions

View File

@@ -306,12 +306,12 @@ function Ui() {
var el_to_focus = (el_window.className === "modal" ? el_window.querySelector(".modal-window") : el_window);
if (document.activeElement !== el_to_focus) {
el_to_focus.focus();
tools.debug("Focused window:", el_window);
tools.debug("UI: focused window:", el_window);
if (el_window.className !== "modal" && parseInt(el_window.style.zIndex) !== __top_z_index) {
var z_index = __top_z_index + 1;
el_window.style.zIndex = z_index;
__top_z_index = z_index;
tools.debug("Raised window:", el_window);
tools.debug("UI: raised window:", el_window);
}
}
};