Sha256: 36cf8434bfb8615a6bd1c7b801817305e77f8080c214e22b7c1f4fc86fa390a6

Contents?: true

Size: 562 Bytes

Versions: 6

Compression:

Stored size: 562 Bytes

Contents

$(function() {
  var original_calc_type = $('#calc-type').attr('value');
  $('div.calculator-settings-warning').hide();
  $('#calc-type').change(function() {
    if ($('#calc-type').attr('value') == original_calc_type) {
      $('div.calculator-settings').show();
      $('div.calculator-settings-warning').hide();
      $('.calculator-settings input').prop("disabled", false);
    } else {
      $('div.calculator-settings').hide();
      $('div.calculator-settings-warning').show();
      $('.calculator-settings input').prop("disabled", true);
    }
  });
})

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/assets/javascripts/admin/calculator.js
spree_core-1.0.6 app/assets/javascripts/admin/calculator.js
spree_core-1.0.4 app/assets/javascripts/admin/calculator.js
spree_core-1.0.3 app/assets/javascripts/admin/calculator.js
spree_core-1.0.2 app/assets/javascripts/admin/calculator.js
spree_core-1.0.1 app/assets/javascripts/admin/calculator.js