Sha256: 07540d392686c2fa72a6371e3de0e82442bf9e975b85803a698d278dac9aa780

Contents?: true

Size: 1.86 KB

Versions: 4

Compression:

Stored size: 1.86 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"spree/backend/zone.js;FI"
pathname;TI"p/usr/local/rvm/gems/ruby-2.1.2/gems/spree_backend-2.2.4/app/assets/javascripts/spree/backend/zone.js.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+TI"length;TiI"digest;TI"%53b10ee5c0c5ea50b2b3b24b286ca7eb;FI"source;TI"(function() {
  var show_country, show_state;

  $(function() {
    ($('#country_based')).click(function() {
      return show_country();
    });
    ($('#state_based')).click(function() {
      return show_state();
    });
    if (($('#country_based')).is(':checked')) {
      return show_country();
    } else if (($('#state_based')).is(':checked')) {
      return show_state();
    } else {
      show_state();
      return ($('#state_based')).click();
    }
  });

  show_country = function() {
    ($('#state_members :input')).each(function() {
      return ($(this)).prop('disabled', true);
    });
    ($('#state_members')).hide();
    ($('#zone_members :input')).each(function() {
      return ($(this)).prop('disabled', true);
    });
    ($('#zone_members')).hide();
    ($('#country_members :input')).each(function() {
      return ($(this)).prop('disabled', false);
    });
    return ($('#country_members')).show();
  };

  show_state = function() {
    ($('#country_members :input')).each(function() {
      return ($(this)).prop('disabled', true);
    });
    ($('#country_members')).hide();
    ($('#zone_members :input')).each(function() {
      return ($(this)).prop('disabled', true);
    });
    ($('#zone_members')).hide();
    ($('#state_members :input')).each(function() {
      return ($(this)).prop('disabled', false);
    });
    return ($('#state_members')).show();
  };

}).call(this);
;TI"required_assets_digest;TI"%62c32e79f856ab85050b4058d957baf1;FI"
_version;TI"%5ef14a844324cba3e114bd0123f88a5e;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
bcms_spree-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/23c0563415a4add394eb14b6ba281466
bcms_spree-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/57207100737a12e8bdcf678da6589fe8
bcms_spree-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/23c0563415a4add394eb14b6ba281466
bcms_spree-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/57207100737a12e8bdcf678da6589fe8