app/assets/javascripts/para/stall/inputs/variants-matrix/input.coffee
Line exceeds maximum allowed length Open
Open
propertyValue = value for value in propertyValues when value.propertyId is combinationProperty.propertyId
- Exclude checks
Line exceeds maximum allowed length Open
Open
@nestedFieldsManager = new VariantsMatrix.NestedFields(@$('[data-variants-matrix-new-row-button]'))
- Exclude checks
Line exceeds maximum allowed length Open
Open
variant = new VariantsMatrix.Variant(el: row, combination: combination, input: this)
- Exclude checks
Line exceeds maximum allowed length Open
Open
propertyValues = for propertyCell in $(row).find('[data-variants-matrix-variant-property]').get()
- Exclude checks
Line exceeds maximum allowed length Open
Open
@propertiesSelect = new VariantsMatrix.PropertiesSelect(el: @$('[data-variants-matrix-properties-select]'))
- Exclude checks
Comprehensions must have parentheses around them Open
Open
propertyValue = value for value in propertyValues when value.propertyId is combinationProperty.propertyId
- Exclude checks
Line exceeds maximum allowed length Open
Open
combinationValueMatches = combinationProperty and combinationProperty.id is propertyValue.id
- Exclude checks
Line exceeds maximum allowed length Open
Open
return combination for combination in existingCombinations when @combinationMatches(propertyValues, combination)
- Exclude checks
Line exceeds maximum allowed length Open
Open
@variants.splice(index, 1) for variant, index in @variants when variant?.matches(destroyedVariant.combination)
- Exclude checks
Line exceeds maximum allowed length Open
Open
$enabledCell = @$variantsTableHeader.find('[data-variants-matrix-variant-enabled-cell]')
- Exclude checks
Line exceeds maximum allowed length Open
Open
@$variantsTableHeader.find('[data-variants-matrix-variant-property-cell]').remove()
- Exclude checks
Line exceeds maximum allowed length Open
Open
$('<th/>', 'data-variants-matrix-variant-property-cell': '').text(property.name)
- Exclude checks
Comprehensions must have parentheses around them Open
Open
matches = true for combination in combinations when variant.matches(combination)
- Exclude checks
Line exceeds maximum allowed length Open
Open
propertyHeaderCells = for property in @propertiesSelect.getSelectedProperties() when property.active
- Exclude checks
Line exceeds maximum allowed length Open
Open
return variant for variant, index in @variants when variant.matches(combination)
- Exclude checks
Line exceeds maximum allowed length Open
Open
matches = true for combination in combinations when variant.matches(combination)
- Exclude checks