{:uriI"Æfile:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/_modals.js?type=application/javascript&pipeline=self&id=a4279a5888b7a660bb11eb1b79cb00100e851b6f5bf10c3f409522c3a3ae895c:ET:load_pathI"G/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts;F: filenameI"V/Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/_modals.js;T: nameI"fae/_modals;T:logical_pathI"fae/_modals.self.js;T:content_typeI"application/javascript;T: sourceI"Í/* global Fae */ Fae.modals = { init: function() { this.imageModals(); this.markdownModal(); }, imageModals: function() { //image modals $(".js-image-modal").click(function(e){ e.preventDefault(); var $this = $(this); // create invisi-image to get natural width/height var image = new Image(); image.src = $this.attr('src'); var image_width = image.width; var image_height = image.height; $this.modal({ minHeight: image_height, minWidth: image_width, overlayClose: true }); }); }, markdownModal: function() { // initialize modal for markdown-hint $(document).on('click', '.markdown-support', function(){ var markdown_hint_width = $('.markdown-hint').width() + 40; $('.markdown-hint-wrapper').modal({ minHeight: 430, minWidth: markdown_hint_width, overlayClose: true, zIndex: 1100 }); }); } }; ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"dfile-digest:///Library/WebServer/Documents/work/fine/_fae/app/assets/javascripts/fae/_modals.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%Dè¬)3U+P6È<骖H‰æ+’%/»‹V¸: lengthiÍ:integrityI"Xni:///sha-256;ROisKRUzVStQNsgdPOmqlkiJ5iuSFiUvDh67ix9WFLg?ct=application/javascript;T:dependencies_digest"%ê8‹ß~ÜqÃD…6Q4œÔûîÈ'fPשõÚÄ$':idI"Ea4279a5888b7a660bb11eb1b79cb00100e851b6f5bf10c3f409522c3a3ae895c;F: mtimel+QóU