File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
app/code/Magento/Catalog/view/adminhtml/web/catalog/product/attribute Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 3
3
* See COPYING.txt for license details.
4
4
*/
5
5
6
- /* global $break $ $$ */
7
-
8
6
define ( [
9
7
'jquery' ,
10
8
'mage/backend/validation'
@@ -14,28 +12,30 @@ define([
14
12
return function ( config ) {
15
13
var _config = jQuery . extend ( {
16
14
element : null ,
17
- message : "" ,
15
+ message : '' ,
18
16
uniqueClass : 'required-unique'
19
17
} , config ) ;
20
18
21
- if ( typeof _config . element === " string" ) {
19
+ if ( typeof _config . element === ' string' ) {
22
20
jQuery . validator . addMethod (
23
21
_config . element ,
24
22
25
23
function ( value , element ) {
26
24
var inputs = jQuery ( element )
27
- . closest ( " table" )
28
- . find ( '.' + _config . uniqueClass + " :visible" ) ,
25
+ . closest ( ' table' )
26
+ . find ( '.' + _config . uniqueClass + ' :visible' ) ,
29
27
valuesHash = { } ,
30
28
isValid = true ;
31
29
32
30
inputs . each ( function ( el ) {
33
31
var inputValue = inputs [ el ] . value ;
34
- if ( typeof valuesHash [ inputValue ] !== "undefined" ) {
32
+
33
+ if ( typeof valuesHash [ inputValue ] !== 'undefined' ) {
35
34
isValid = false ;
36
35
}
37
36
valuesHash [ inputValue ] = el ;
38
37
} ) ;
38
+
39
39
return isValid ;
40
40
} ,
41
41
You can’t perform that action at this time.
0 commit comments