Sha256: 1ec2d86a6d4cb89c25d6cce91bc9fc69ba6d708937b4f6c4cb9eac10547f05af

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1378304688.703019:@value{I"
class:EFI"BundledAsset;
FI"id;
F"%3b41615ccb29f8bfc165595029588715I"logical_path;
FI"$china_city/jquery.china_city.js;
TI"
pathname;
FI"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee;
TI"content_type;
FI"application/javascript;
FI"
mtime;
FI"2013-09-04T13:53:49+08:00;
FI"	body;
FI"÷(function() {
  (function($) {
    $.fn.china_city = function() {
      return this.each(function() {
        var selects;
        selects = $(this).find('.city-select');
        return selects.change(function() {
          var $this, next_selects;
          $this = $(this);
          next_selects = selects.slice(selects.index(this) + 1);
          $("option:gt(0)", next_selects).remove();
          if (next_selects.first()[0] && $this.val()) {
            return $.get("/china_city/" + ($(this).val()), function(data) {
              var option, _i, _len, _results;
              _results = [];
              for (_i = 0, _len = data.length; _i < _len; _i++) {
                option = data[_i];
                _results.push(next_selects.first()[0].options.add(new Option(option[0], option[1])));
              }
              return _results;
            });
          }
        });
      });
    };
    return $(function() {
      return $('.city-group').china_city();
    });
  })(jQuery);

}).call(this);
;
TI"asset_paths;
F[I"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee;
TI"dependency_paths;
F[{I"	path;
FI"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee;
TI"
mtime;
FIu:	Time
…`€×:@_zoneI"CST;
T:offseti€pI"hexdigest;
F"%970fd8bc75a485bd8d267829b1da7c4dI"
_version;
F"%5397ace057ac8dcf6c38e89335593daf

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
china_city-0.0.6 spec/dummy/tmp/cache/assets/DF5/000/sprockets%2F35f568d6b4c5b9431aeca08ebe1b2dea
china_city-0.0.4 spec/dummy/tmp/cache/assets/DF5/000/sprockets%2F35f568d6b4c5b9431aeca08ebe1b2dea