Commit b7e42d56 authored by Vladislav Bolshakov's avatar Vladislav Bolshakov Committed by System Administrator

barbass: обновление таймера

parent 9a4fec11
......@@ -180,7 +180,7 @@ function isetersoft() {
var email = document.getElementById('useremail').className;
var domain = email.split("@")[1];
return (domain == "etersoft.ru");
return (domain === "etersoft.ru");
}
//Является ли пользователь ответственным
......@@ -254,7 +254,7 @@ function mysubmit() {
changed_remain = 1;
}
if (changed_remain == 1 && (document.querySelector("#changeform #work_time").value > 0 || document.querySelector("#changeform #comment").value.length == 0 || !isetersoft())) {
if (changed_remain == 1 && (!isetersoft() || document.querySelector("#changeform #work_time").value > 0 || document.querySelector("#changeform #comment").value.length == 0)) {
document.changeform.submit();
} else {
showDiv();
......
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