Sha256: a2cd866aecea986456440a0c033645ea07e5e5094574ec24bf7cf3df06e9ff25

Contents?: true

Size: 490 Bytes

Versions: 31

Compression:

Stored size: 490 Bytes

Contents

$(function() {                                                                    
  var original_gtwy_type = $('#gtwy-type').attr('value');
  $('div#gateway-settings-warning').hide();
  $('#gtwy-type').change(function() { 
    if ($('#gtwy-type').attr('value') == original_gtwy_type) {
      $('div.gateway-settings').show();
      $('div#gateway-settings-warning').hide();
    } else {
      $('div.gateway-settings').hide();
      $('div#gateway-settings-warning').show();
    }
  });
})

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
spree_core-1.0.0 app/assets/javascripts/admin/gateway.js
spree_core-1.0.0.rc4 app/assets/javascripts/admin/gateway.js
spree_core-1.0.0.rc3 app/assets/javascripts/admin/gateway.js
spree_core-1.0.0.rc2 app/assets/javascripts/admin/gateway.js
spree_core-1.0.0.rc1 app/assets/javascripts/admin/gateway.js
spree_core-0.70.3 app/assets/javascripts/admin/gateway.js
spree_core-0.70.2 app/assets/javascripts/admin/gateway.js
spree_core-0.70.1 app/assets/javascripts/admin/gateway.js
spree_core-0.70.0 app/assets/javascripts/admin/gateway.js
spree_core-0.70.0.rc2 app/assets/javascripts/admin/gateway.js
spree_core-0.70.RC1 app/assets/javascripts/admin/gateway.js