diff --git a/HardwareShop/HardwareShopWorkerApp/Views/Home/WorkerReport.cshtml b/HardwareShop/HardwareShopWorkerApp/Views/Home/WorkerReport.cshtml index 882c9ea..8d6a8ce 100644 --- a/HardwareShop/HardwareShopWorkerApp/Views/Home/WorkerReport.cshtml +++ b/HardwareShop/HardwareShopWorkerApp/Views/Home/WorkerReport.cshtml @@ -20,10 +20,10 @@

Дата конца:

- - @@ -34,7 +34,7 @@  по  ...

-
+
@@ -106,14 +106,6 @@ }); }); - dateFromInput.addEventListener("input", () => { - errorDivShell.style.gridTemplateRows = "0fr"; - }); - - dateToInput.addEventListener("input", () => { - errorDivShell.style.gridTemplateRows = "0fr"; - }); - // ![Event listeners] // [HTML gen] @@ -169,17 +161,14 @@ const validate = function (reportModel) { if (isNaN(reportModel["DateFrom"])) { - errorDivShell.style.gridTemplateRows = "1fr"; errorP.innerHTML = "Выберите начальную дату"; return false; } if (isNaN(reportModel["DateTo"])) { - errorDivShell.style.gridTemplateRows = "1fr"; errorP.innerHTML = "Выберите конечную дату"; return false; } if (reportModel["DateFrom"] >= reportModel["DateTo"]) { - errorDivShell.style.gridTemplateRows = "1fr"; errorP.innerHTML = "Начальная дата должна быть меньше конечной"; return false; }