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