Sha256: f1fd9ad18f3b00871a4f30337361e5f15b122db901b7db9ef7caa29b3031b077

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

SpreePagSeguro = function(paymentMethodID) {

    function isSelected(paymentMethod) {
        return paymentMethodID && paymentMethod == paymentMethodID
    }

    function showOrHide(selector) {
        return function() {
            var paymentMethod = $(this).val();
            $(selector)[  isSelected(paymentMethod) ? 'hide' : 'show' ]();
        }
    }

    return {
        showOrHide: showOrHide
    }

}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_pagseguro_oficial-1.1.2 app/assets/javascripts/spree/frontend/solidus_pagseguro_oficial.js
solidus_pagseguro_oficial-1.1.1 app/assets/javascripts/spree/frontend/solidus_pagseguro_oficial.js
solidus_pagseguro_oficial-1.1.0 app/assets/javascripts/spree/frontend/solidus_pagseguro_oficial.js