{I" class:ETI"BundledAsset;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"required_assets_digest;TI"%d26eeb03809df0d36f1a630b092a481d;FI" _version;TI"%7097359102b3db973d6242ce2db779ef;F