{:uriI"·file:///Users/tyler/Development/guts/app/assets/javascripts/guts/media.js?type=application/javascript&pipeline=self&id=5b4a04b0e3a5e68b8202a9df5896805b52103f0983476337aa8aeeb6ede48f48:ET:load_pathI"9/Users/tyler/Development/guts/app/assets/javascripts;T: filenameI"G/Users/tyler/Development/guts/app/assets/javascripts/guts/media.js;T: nameI"guts/media;T:logical_pathI"guts/media.self.js;T:content_typeI"application/javascript;T: sourceI"=jQuery(document).ready(function($) { $(".media_add").on("click", function() { $(this).remove(); $(".media_add_new").show(); }); $(".media_destroy").on("click", function(e) { e.preventDefault(); var $that = $(this); swal({ title: "Are you sure?", text: "You will not be able to recover this attachment after deletion.", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", closeOnConfirm: false }, function() { swal.close(); $that.parents(".media_block").find("input[type=checkbox]").trigger("click"); $that.parents(".media_block").fadeOut("slow"); }); }); if (window.top.tinymce) { $(".action_links .media_insert").show(); $(".media_insert").on("click", function(e) { e.preventDefault(); console.log(1); if ($(this).data("file-type").indexOf("image") > -1) { $("#media_insert_modal select").html(""); $.each($(this).data("sizes").split(","), function() { var sizing = $(this).split(":"); $("#media_insert_modal select").append(''); }); $("#media_insert_modal").foundation("open"); } }); } }); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"Ufile-digest:///Users/tyler/Development/guts/app/assets/javascripts/guts/media.js;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%³ ³Ñ„öøå4žJ ¢<Mñ›)raŠÚç{¢g æ: lengthi=:dependencies_digest"%~¼¨{;¥3°”M$• îð…)ãbæF¢ÿÙRÏä:idI"E5b4a04b0e3a5e68b8202a9df5896805b52103f0983476337aa8aeeb6ede48f48;F: mtimel+-ªyV