Sha256: 06e3c063fbff088e5103d47e63696f7ff830c242c7d220dcb8be4a44cdb46b26

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1350314051.454416:@value"™{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"admin/address_states.js;FI"
pathname;FI"r/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/address_states.js;FI"content_type;FI"application/javascript;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"length;Fi"I"digest;F"%9096f1544a272feb9c403cc4c1551f03I"source;FI""var update_state = function(region) {
  var country        = $('span#' + region + 'country :only-child').val();
  var states         = state_mapper[country];

  var state_select = $('span#' + region + 'state select');
  var state_input = $('span#' + region + 'state input');

  if(states) {
    state_select.html('');
    var states_with_blank = [["",""]].concat(states);
    $.each(states_with_blank, function(pos,id_nm) {
      var opt = $(document.createElement('option'))
                .attr('value', id_nm[0])
                .html(id_nm[1]);
      state_select.append(opt);
    });
    state_select.prop("disabled", false).show();
    state_input.hide().prop("disabled", true);

  } else {
    state_input.prop("disabled", false).show();
    state_select.hide().prop("disabled", true);
  }

};
;FI"dependency_digest;F"%4a10afb1e0f73ed6f5763e844d6dfc7fI"required_paths;F[I"r/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/address_states.js;FI"dependency_paths;F[{I"	path;FI"r/home/stattert/.rvm/gems/ruby-1.9.3-p194/gems/spree_core-1.1.3/app/assets/javascripts/admin/address_states.js;FI"
mtime;FI"2012-08-27T12:12:01+01:00;FI"digest;F"%9096f1544a272feb9c403cc4c1551f03I"
_version;F"%7270767b2a9e9fff880aa5de378ca791

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datashift_spree-0.2.1 spec/sandbox/tmp/cache/assets/E8E/970/sprockets%2Febfceaf7c849dc450c9b17aeb2fa7c4b