Sha256: c2ff8b910e8e4d4b3547c76b97a1fcffd5d31959295df3d5cb4b56b7f4ccf137

Contents?: true

Size: 866 Bytes

Versions: 22

Compression:

Stored size: 866 Bytes

Contents

//= require spree/backend

$(document).ready(function () {
  $.expr[':'].Contains = function (a, i, m) {
    return (
      (a.textContent || a.innerText || '')
        .toUpperCase()
        .indexOf(m[3].toUpperCase()) >= 0
    )
  }

  function listFilter (list) {
    var input = $('#variant-price-search')

    $(input)
      .change(function () {
        var filter = $(this).val()
        if (filter) {
          $(list).find('.panel-title:not(:Contains(' + filter + '))').parent().hide()
          $(list).find('.panel-title:Contains(' + filter + ')').parent().show()
        } else {
          $(list)
            .find('.panel')
            .parent()
            .show()
        }
        return false
      })
      .keyup(function () {
        $(this).change()
      })
  }

  // ondomready
  $(function () {
    listFilter($('#variant-prices'))
  })
})

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spree_backend-4.2.7 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.3 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.6 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.2 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.1 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.0 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.0.rc3 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.0.rc2 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.3.0.rc1 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.5 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.4 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.3.1 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.3 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.2 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.1 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.0 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.0.rc5 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.0.rc4 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.0.rc3 app/assets/javascripts/spree/backend/multi_currency.js
spree_backend-4.2.0.rc2 app/assets/javascripts/spree/backend/multi_currency.js