{I" class:ETI"ProcessedAsset; FI"logical_path; TI"mercury/modal.js; FI" pathname; TI"…/home/edik/.rvm/gems/ruby-2.0.0-p247@very_simple_cms/bundler/gems/mercury-3e0245e33195/app/assets/javascripts/mercury/modal.js.coffee; FI"content_type; TI"application/javascript; TI" mtime; Tl+½¡9RI"length; Ti+I"digest; TI"%0e29da2ab09f2f0e1e096375f4858f6a; FI"source; TI"+(function() { var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; this.Mercury.modal = function(url, options) { var instance; if (options == null) { options = {}; } instance = new Mercury.Modal(url, options); instance.show(); return instance; }; this.Mercury.Modal = (function() { function Modal(url, options) { this.url = url; this.options = options != null ? options : {}; this.hide = __bind(this.hide, this); } Modal.prototype.show = function(url, options) { var _base, _this = this; if (url == null) { url = null; } if (options == null) { options = null; } this.url = url || this.url; this.options = options || this.options; (_base = this.options).minWidth || (_base.minWidth = 400); if (this.options.ujsHandling !== false) { this.options.ujsHandling = true; } Mercury.trigger('focus:window'); this.initializeModal(); if (this.visible) { this.update(); } else { this.appear(); } if (this.options.content) { return setTimeout((function() { return _this.loadContent(_this.options.content); }), 500); } }; Modal.prototype.initializeModal = function() { if (this.initialized) { return; } this.build(); this.bindEvents(); return this.initialized = true; }; Modal.prototype.build = function() { var _ref, _ref1; this.element = jQuery('.mercury-modal'); this.overlay = jQuery('.mercury-modal-overlay'); if (!(this.element.get(0) && this.overlay.get(0))) { this.element = jQuery('