Sha256: 5eb843cd868db6c567df1b2b6dbf59b96a4cd72b627c1aa6889008d50f9bdd5f

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

$(function() {
  var SpreePayments = {
    init: function() {
      this.applyMaskOnDescriptorName()
      this.toggleAdvancedPreferences()
    },
    applyMaskOnDescriptorName: function() {
      $('[id*="_preferred_descriptor_name"]').mask('***/*?*****************')
    },
    toggleAdvancedPreferences: function() {
      $('#advanced-preferences-heading').on('click', function() {
        $('#advanced-preferences').slideToggle()
        $('#advanced-preferences').toggleClass('collapsed')
        $('span.icon', $(this)).toggleClass('icon-chevron-down')
      })
    }
  }
  SpreePayments.init()
})

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_braintree_vzero-3.6.0 app/assets/javascripts/spree/backend/payments.js
spree_braintree_vzero-3.5.1 app/assets/javascripts/spree/backend/payments.js