o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1325695617.8775082: @value{I" class:EFI"BundledAsset; FI"id; F"%998fbd0448ea00819317dcb8e2381c9cI"logical_path; F"!umlaut/ensure_window_size.jsI" pathname; F"R/home/rochkind/umlaut/app/assets/javascripts/umlaut/ensure_window_size.js.erbI"content_type; FI"application/javascript; FI" mtime; FI"2011-12-13T14:20:06-05:00; FI" body; FI"ß// Some code to re-size our window to config defined minimum height/width // We have little control over what size a content provider generates a // window for a link resolver. Often it's too small. So we resize in // js. // Some browsers won't let us resize the window though. Oh well, we try. // Those that wont' let us just silently no-op. jQuery(document).ready(function($) { var min_width = 820; var min_height = 400; // Default to something huge, so if we fail in getting dimensions, // we won't resize. var orig_width = 100000; var orig_height = 100000; // JQuery document viewport width/height orig_width = $(window).width(); orig_height = $(window).height(); width_diff = min_width - orig_width; height_diff = min_height - orig_height; if (width_diff < 0) { width_diff = 0 } if (height_diff < 0) { height_diff = 0 } if (width_diff >0 || height_diff > 0) { window.resizeBy(width_diff, height_diff) } }); ; FI"asset_paths; F["R/home/rochkind/umlaut/app/assets/javascripts/umlaut/ensure_window_size.js.erbI"dependency_paths; F[{I" path; F"R/home/rochkind/umlaut/app/assets/javascripts/umlaut/ensure_window_size.js.erbI" mtime; FIu: Time ³í€`P: @_zoneI"EST; T: offsetiþ°¹I"hexdigest; F"%41089e29010f704b4dfcdbac14b7a7f3I" _version; F"%46dde6621c301f4928e3b34efee9e3b5