Commit 9d5f20d3 authored by Vladislav Bolshakov's avatar Vladislav Bolshakov Committed by System Administrator

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

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