o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1368726328.040354: @value"ƒ {I" class:ETI"ProcessedAsset;FI"logical_path;TI""blacklight/lightbox_dialog.js;FI" pathname;TI"{/Users/jfriesen/.rvm/gems/ruby-2.0.0-p195@curate/gems/blacklight-4.2.1/app/assets/javascripts/blacklight/lightbox_dialog.js;FI"content_type;TI"application/javascript;TI" mtime;TI"2013-05-15T10:46:13-04:00;TI" length;TijI" digest;TI"%5cd03ef06fc36453f9c0f104f255a27f;FI" source;TI"jBlacklight.setup_modal = function(link_selector, form_selector, launch_modal) { $(link_selector).click(function(e) { link = $(this) e.preventDefault(); var jqxhr = $.ajax({ url: link.attr('href'), dataType: 'script' }); jqxhr.always( function (data) { $('#ajax-modal').html(data.responseText); Blacklight.setup_modal('.modal-footer a', '#ajax-modal form.ajax_form', false); if (launch_modal) { $('#ajax-modal').modal(); } Blacklight.check_close_ajax_modal(); }); }); $(form_selector).submit(function(e) { var jqxhr = $.ajax({ url: $(this).attr('action'), data: $(this).serialize(), type: 'POST', dataType: 'script' }); jqxhr.always (function (data) { $('#ajax-modal').html(data.responseText); Blacklight.setup_modal('#ajax-modal .ajax_reload_link', '#ajax-modal form.ajax_form', false); Blacklight.check_close_ajax_modal(); }); return false; }); }; Blacklight.check_close_ajax_modal = function() { if ($('#ajax-modal span.ajax-close-modal').length) { modal_flashes = $('#ajax-modal .flash_messages'); main_flashes = $('#main-flashes .flash_messages:nth-of-type(1)'); $('#ajax-modal *[data-dismiss="modal"]:nth-of-type(1)').trigger('click'); main_flashes.append(modal_flashes); modal_flashes.fadeIn(500); } } $(document).ready( function() { Blacklight.setup_modal("a.lightboxLink,a.more_facets_link,.ajax_modal_launch", "#ajax-modal form.ajax_form", true); }); ;TI"dependency_digest;TI"%62f170453c619deb870898eed30f0af1;FI"required_paths;T[I"u/Users/jfriesen/.rvm/gems/ruby-2.0.0-p195@curate/gems/blacklight-4.2.1/app/assets/javascripts/blacklight/core.js;FI"{/Users/jfriesen/.rvm/gems/ruby-2.0.0-p195@curate/gems/blacklight-4.2.1/app/assets/javascripts/blacklight/lightbox_dialog.js;FI"dependency_paths;T[{I" path;TI"{/Users/jfriesen/.rvm/gems/ruby-2.0.0-p195@curate/gems/blacklight-4.2.1/app/assets/javascripts/blacklight/lightbox_dialog.js;FI" mtime;TI"2013-05-15T10:46:13-04:00;TI" digest;TI"%1d4ed5ed6effd55e73fee6628c741ec5;F{I" path;TI"u/Users/jfriesen/.rvm/gems/ruby-2.0.0-p195@curate/gems/blacklight-4.2.1/app/assets/javascripts/blacklight/core.js;FI" mtime;TI"2013-05-15T10:46:13-04:00;TI" digest;TI"%45b75fb40af168e0dcbfbb7b97252e3d;FI" _version;TI"%ffd318ca8b794f42f5029101c2cf5d91;F