Commit 22961ff6 authored by System Administrator's avatar System Administrator

[etersoft] Cherry-pick 1e285f0c

parent 53a865c2
......@@ -291,12 +291,38 @@ window.addEventListener("load", function() {
.querySelector("#realworktime")
.addEventListener("paste", updateTimeValue);
<<<<<<< HEAD
// add listener for enter key down to work time input
document.querySelector("#realworktime").addEventListener("keyup", (event) => {
if (event.key === "Enter") {
document.querySelector("#realworktime").blur();
document.querySelector("#ProductTime").focus();
}
=======
if (!isetersoft()) {
const comment = document.querySelector('#comment').value.length;
if (!comment) {
alert('Поле комментария не может быть пустым!');
return
}
const bugForm = etersoft_create === 1 ? "#Create" : "#changeform";
document.querySelector(bugForm).submit();
return
}
let timespentValue = getTimespentValue();
dialog.style.display = "block";
focusManager.capture(dialog);
// write work time in input value
document.querySelector("#realworktime").value =
localStorage.time === undefined ? timespentValue : localStorage.time;
document.querySelector("#saveTime").dataset["time"] = timespentValue;
>>>>>>> 1e285f0c1 (Fix modal window showing for non @etersoft users)
});
// add listener for enter key down to productive time input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment