Sha256: 2501325a3f235a85b2343bcb36778ec7b16fd21eeb2d9f99dd98b662a02f9f1a
Contents?: true
Size: 410 Bytes
Versions: 25
Compression:
Stored size: 410 Bytes
Contents
$ -> if $('.new_payment').is('*') $input = $('input[name="payment[payment_method_id]"]') $paymentMethods = $('.payment-method-settings .payment-methods') updateSelected = -> id = $input.filter(":checked").val() $paymentMethods.addClass('hidden') $paymentMethods.filter("#payment_method_#{id}").removeClass('hidden') $input.on('click', updateSelected) updateSelected()
Version data entries
25 entries across 25 versions & 1 rubygems