{:uriI"file:///Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee?type=application/javascript&pipeline=self&id=c0b3b94b39e607a91bf34212af309cceb8c6b9141ad26b0a05f2f0e01c218748:ET:load_pathI"A/Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts;T: filenameI"f/Users/tvd/code/ruby/gems/alchemy_cms/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"tfile-digest:///Users/tvd/code/ruby/gems/alchemy_cms/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee;TTF: requiredo;;} F:stubbedo;;} F: linkso;;} F:charsetI" utf-8;F:digest"%0tul{Et6g;:lengthi :dependencies_digest"%ŐsCL';{~doV:idI"Ec0b3b94b39e607a91bf34212af309cceb8c6b9141ad26b0a05f2f0e01c218748;F: mtimel+W