o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1330634906.5790908:@value"’{I" class:EFI"ProcessedAsset; FI"logical_path; F"umlaut/ajax_windows.jsI" pathname; F"H/home/rochkind/umlaut/app/assets/javascripts/umlaut/ajax_windows.jsI"content_type; FI"application/javascript; FI" mtime; FI"2012-02-29T14:11:58-05:00; FI"length; Fi®I"digest; F"%abca2bf9da1ee9d3c894b5ca866f17a9I"source; FI"®/* ajax_windows.js. Support for modal popup windows in Umlaut items. */ jQuery(document).ready(function($) { var shared_modal_d = $("
").dialog({autoOpen: false, modal: true, width: "400px"}) ; $("a.ajax_window").live("click", function(event) { $(shared_modal_d).load( this.href, function() { var heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove(); $(shared_modal_d).dialog("option", "title", heading.text()); $(shared_modal_d).dialog("open"); }); return false; }); function ajax_form_catch(event) { $(shared_modal_d).load( $(event.target).closest("form").attr("action"), $(event.target).closest("form").serialize(), function() { var heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove(); $(shared_modal_d).dialog("option", "title", heading.text()); $(shared_modal_d).dialog("open"); }); return false; } //Trapping two events, click on the submit button or submit on the form //is strangely needed in IE7 to trap both return-in-field submits //and click-on-button submits. In FF just the second "submit" version //is sufficient. $("form.modal_dialog_form input[type=submit]").live("click", ajax_form_catch ); $("form.modal_dialog_form").live( "submit", ajax_form_catch); }); ; FI"dependency_digest; F"%12922f3ad52959219bcf6372523f29eeI"required_paths; F["H/home/rochkind/umlaut/app/assets/javascripts/umlaut/ajax_windows.jsI"dependency_paths; F[{I" path; F"H/home/rochkind/umlaut/app/assets/javascripts/umlaut/ajax_windows.jsI" mtime; FI"2012-02-29T14:11:58-05:00; FI"digest; F"%860f0989288ca599a6268acdf884b9e0I" _version; F"%aa7d0db7619379e13b08335dee027df2