{:uriI"file:///Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/assets/javascripts/umlaut/load_permalink.js?type=application/javascript&pipeline=self&id=e82b39b73d765fb53220c122598410bd3e4746ac018831de022b4717b6ee5e31:ET:load_pathI"k/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/assets/javascripts;T:
filenameI"/Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/assets/javascripts/umlaut/load_permalink.js;T: nameI"umlaut/load_permalink;T:logical_pathI""umlaut/load_permalink.self.js;T:content_typeI"application/javascript;T:sourceI"jQuery(document).ready(function($) {
$("*[data-umlaut-toggle-permalink]").click(function(event) {
event.preventDefault();
var originalLink = $(this)
var valueContainer = $("#umlaut-permalink-container");
if (! valueContainer.data("loaded")) {
valueContainer.html('').show();
$.getJSON( originalLink.attr('href'), function(data) {
var href = data.permalink;
var a = $("");
a.attr("href", href);
a.text(href);
valueContainer.html(a).data("loaded", true).show();
});
}
else {
valueContainer.toggle();
}
});
});
;T:
metadata{:dependencieso:Set:
@hash{
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/barnabyalter/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/umlaut-4.1.7/app/assets/javascripts/umlaut/load_permalink.js;TT:
requiredo;;{ :stubbedo;;{ :
linkso;;{ :charsetI"
utf-8;F:digest"%n\UQm9V8O)Q:2K~:lengthi:dependencies_digest"%qQaCCh9xC,
Xk#4:idI"Ee82b39b73d765fb53220c122598410bd3e4746ac018831de022b4717b6ee5e31;F:
mtimel+tV