Sha256: eec46dc91f339711b69d13b4916ddabd7c13d56206760cdfba8469eb2079746b
Contents?: true
Size: 1.83 KB
Versions: 2
Compression:
Stored size: 1.83 KB
Contents
{I" class:ETI"ProcessedAsset; FI"logical_path; TI"$china_city/jquery.china_city.js; FI" pathname; TI"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+pĚRI"length; Ti÷I"digest; TI"%a7ea049f981f03c986d0fb48e50f6a08; FI"source; TI"÷(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"dependency_digest; TI"%d26eeb03809df0d36f1a630b092a481d; FI"required_paths; T[I"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee; FI"dependency_paths; T[{I" path; TI"f/Users/saberma/Documents/china_city/app/assets/javascripts/china_city/jquery.china_city.js.coffee; FI" mtime; TI"2013-08-20T09:54:56+08:00; TI"digest; TI"%ef4e3ea053e92a38bda643d941274da8; FI" _version; TI"%7097359102b3db973d6242ce2db779ef; F
Version data entries
2 entries across 2 versions & 1 rubygems