Skip to content

Commit 07a0bff

Browse files
author
Mykhailo Miroshnikov
committed
MAGETWO-31191: Page JS dependencies optimization
- Add var definition to validation.js
1 parent 42f38d6 commit 07a0bff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/web/mage/backend/validation.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@
233233
'validate-downloadable-file': [
234234
function (v, element) {
235235
var elmParent = $(element).parent(),
236-
linkType = elmParent.find('input[value="file"]');
236+
linkType = elmParent.find('input[value="file"]'),
237+
newFileContainer;
238+
237239
if (linkType.is(':checked') && (v === '' || v === '[]')) {
238240
newFileContainer = elmParent.find('.new-file');
239241
if (!alertAlreadyDisplayed && (newFileContainer.empty() || newFileContainer.is(':visible'))) {

0 commit comments

Comments
 (0)