Sha256: 2b874266acc2361c422213ab5b6ed99db347f859d80acfc5da02414bc0b6d15f
Contents?: true
Size: 1.36 KB
Versions: 2
Compression:
Stored size: 1.36 KB
Contents
o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1318603679.1014709 ~€:@value{ I"length:EFiI"digest; F"%cd0617be0bb397f4ed73302f457470c1I"source; FI"(function() { $(document).ready(function() { var data, lab_list, lab_list_view, map_view; map_view = null; lab_list = null; data = $('#lab_list_container').data('labs'); if (data) { lab_list = new window.LabList(data.labs); map_view = new window.MapView(lab_list, data.zip_location); lab_list_view = new window.LabListView(lab_list); map_view.render(); } else { console.log('no data'); } return $("form#lab_data_search").bind('ajax:beforeSend', function(event, data) { var span, zip_code; zip_code = $(this).find('#zip_code').val(); if (!zip_code.match(/\d{5}/)) { span = $('<span>Zip code should be 5 digits</span>'); $('form#lab_data_search .error_message').append(span); span.fadeOut(4000); return false; } }).bind('ajax:success', function(event, data) { lab_list.setLabs(data.labs); map_view.center_point = data.zip_location; map_view.render(); return $('form#lab_data_search input[type=submit]').prop("disabled", false); }).bind('ajax:complete', function(event, data) {}); }); }).call(this); ; FI" _version; F"%92b8b8015ed078476c64acaf5dc44246
Version data entries
2 entries across 2 versions & 1 rubygems