{:uriI"þfile:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-4e3f2c130b02/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee?type=application/javascript&pipeline=self&id=c925031e89874b1e8741c846f5d10547817fc90aa20dac3b8c7294c1c84561b3:ET:load_pathI"i/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-4e3f2c130b02/app/assets/javascripts;T: filenameI"‰/Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-4e3f2c130b02/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee;T: nameI""alchemy/alchemy.image_overlay;T:logical_pathI"*alchemy/alchemy.image_overlay.self.js;T:content_typeI"application/javascript;T:sourceI"• (function() { var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; window.Alchemy.ImageOverlay = (function(superClass) { extend(ImageOverlay, superClass); function ImageOverlay(url) { this.options = { draggable: false }; ImageOverlay.__super__.constructor.call(this, url, this.options); return; } ImageOverlay.prototype.init = function() { Alchemy.ImageLoader(this.dialog_body); $('.zoomed-picture-background').click((function(_this) { return function(e) { e.stopPropagation(); if (e.target.nodeName === 'IMG') { return; } _this.close(); return false; }; })(this)); $('.picture-overlay-handle').click((function(_this) { return function(e) { _this.dialog.toggleClass('hide-form'); return false; }; })(this)); this.$previous = $('.previous-picture'); this.$next = $('.next-picture'); this.$document.keydown((function(_this) { return function(e) { if (e.target.nodeName === 'INPUT') { return true; } switch (e.which) { case 37: _this.previous(); return false; case 39: _this.next(); return false; default: return true; } }; })(this)); return ImageOverlay.__super__.init.call(this); }; ImageOverlay.prototype.previous = function() { this.$previous.click(); }; ImageOverlay.prototype.next = function() { this.$next.click(); }; ImageOverlay.prototype.build = function() { this.dialog_container = $('
'); this.dialog = $(''); this.dialog_body = $(''); this.close_button = $(' '); this.dialog.append(this.close_button); this.dialog.append(this.dialog_body); this.dialog_container.append(this.dialog); this.overlay = $(''); this.$body.append(this.overlay); this.$body.append(this.dialog_container); return this.dialog; }; return ImageOverlay; })(Alchemy.Dialog); }).call(this); ;T: metadata{:dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"—file-digest:///Users/tvd/.rvm/gems/ruby-2.3.0@alchemy/bundler/gems/alchemy_cms-4e3f2c130b02/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%ë0tulÖ{¦ìÖEt‹6£æg®;÷î”ÍØ:lengthi• :dependencies_digest"%$Ñ9?°âütÝ¿°ÄeƒG[6f0€ÎŒ;:idI"Ec925031e89874b1e8741c846f5d10547817fc90aa20dac3b8c7294c1c84561b3;F: mtimel+…”X