Skip to content

Commit 38cec68

Browse files
committed
fix static #15383
1 parent 11fb048 commit 38cec68

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/web/mage/validation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1952,10 +1952,11 @@
19521952
});
19531953

19541954
console.error(this.submit);
1955+
19551956
/* Call the originalSubmitHandler if it's a function */
19561957
typeof originalSubmitHandler === 'function' ? originalSubmitHandler(form) : form.submit();
19571958
};
1958-
};
1959+
}
19591960
},
19601961

19611962
/**

lib/web/mage/validation/validation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454

5555
if (element.type === 'checkbox') {
5656
/* If orig-name attribute is present, use it for validation. Else use name */
57-
selector = element.getAttribute('orig-name')
58-
? '[orig-name="' + element.getAttribute('orig-name') + '"]'
59-
: '[name="' + element.name + '"]';
57+
var case1 = '[orig-name="' + element.getAttribute('orig-name') + '"]',
58+
case2 = '[name="' + element.name + '"]';
59+
selector = element.getAttribute('orig-name') ? case1 : case2;
6060
$(selector).each(function () {
6161
if ($(this).is(':checked')) {
6262
checkedCount += 1;

0 commit comments

Comments
 (0)