Sha256: eed2fccbeab1516abc35b5c6edbdbb92a84a1efd58a02d621750c9dd042d69be
Contents?: true
Size: 1.16 KB
Versions: 1
Compression:
Stored size: 1.16 KB
Contents
I"–(function() { console.log('hi'); (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() && !$this.val().match(/--.*--/)) { return $.get("/china_city/" + ($(this).val()), function(data) { var i, len, option; if (data.data != null) { data = data.data; } for (i = 0, len = data.length; i < len; i++) { option = data[i]; next_selects.first()[0].options.add(new Option(option[0], option[1])); } return next_selects.trigger('china_city:load_data_completed'); }); } }); }); }; return $(document).on('ready page:load', function() { return $('.city-group').china_city(); }); })(jQuery); }).call(this); :ET
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
china_city-0.0.5 | spec/dummy/tmp/cache/assets/development/sprockets/v3.0/3bk5e-op9c-Gb1VIAOn1Z1PzIwNo6pqWuVvGaSQX9vY.cache |