Sha256: fa92ecb0fe25c393c13fb80c752b25bf90b258285ec3848e06d240302d7ac1c6

Contents?: true

Size: 647 Bytes

Versions: 47

Compression:

Stored size: 647 Bytes

Contents

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

Version data entries

47 entries across 35 versions & 9 rubygems

Version Path
spree_core-0.60.6 public/javascripts/calculator.js
spree_core-0.60.5 public/javascripts/calculator.js
spree-0.11.3 vendor/extensions/theme_default/public/javascripts/calculator.js
spree_core-0.30.2 public/javascripts/calculator.js
spree_core-0.40.4 public/javascripts/calculator.js
spree_core-0.50.4 public/javascripts/calculator.js
spree_core-0.60.4 public/javascripts/calculator.js
spree_core-0.50.3 public/javascripts/calculator.js
spree_core-0.60.3 public/javascripts/calculator.js
spree_core-0.60.2 public/javascripts/calculator.js
spree_core-0.60.1 public/javascripts/calculator.js
spree_core-0.60.0 public/javascripts/calculator.js
spree_core-0.60.0.RC1 public/javascripts/calculator.js
spree_essential_press-0.1.0.pre3 test/dummy/public/javascripts/calculator.js
spree_essential_press-0.1.0.pre2 test/dummy/public/javascripts/calculator.js
spree_core-0.50.2 public/javascripts/calculator.js
spree_core-0.50.1 public/javascripts/calculator.js
spree_core-0.50.0 public/javascripts/calculator.js
spree_core-0.40.3 public/javascripts/calculator.js
spree_core-0.40.2 public/javascripts/calculator.js