Уборка Unreachable statement. Замена === на == и !== на != в яваскриптах из-за ошибок с нестрогой типизацией при переходе на 7.4.

This commit is contained in:
2023-04-08 18:14:19 +03:00
parent 3f3ffc2114
commit cfaf82f73a
76 changed files with 2079 additions and 1918 deletions
+2 -2
View File
@@ -793,7 +793,7 @@ if (isset($_POST['do']) && $_POST['do'] == 'newShadow') {
function calc() {
document.getElementById('ekr').value = document.getElementById('ekr').value.replace(/[^\d\.]+/g, '');
var ekr = document.getElementById('ekr').value;
if (ekr.match(/^[-\+]?[\d]+\.?[\d]*$/) === null) {
if (ekr.match(/^[-\+]?[\d]+\.?[\d]*$/) == null) {
ekr = 0;
}
@@ -918,7 +918,7 @@ if (isset($_POST['do']) && $_POST['do'] == 'newShadow') {
function calc22() {
document.getElementById('ekr2').value = document.getElementById('ekr2').value.replace(/[^\d\.]+/g, '');
var ekre = document.getElementById('ekr2').value;
if (ekre.match(/^[-\+]?[\d]+\.?[\d]*$/) === null) {
if (ekre.match(/^[-\+]?[\d]+\.?[\d]*$/) == null) {
ekre = 0;
}