Sha256: d45cd9d62f0db861eb5f28b80e749691faf62e57c9536f30869d4cbcd04a95fc

Contents?: true

Size: 1.92 KB

Versions: 1

Compression:

Stored size: 1.92 KB

Contents

{: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('<span class="umlaut-permalink-content"><i class="spinner"></i></span>').show();

			$.getJSON( originalLink.attr('href'), function(data) {
				var href = data.permalink;
				var a = $("<a class='umlaut-permalink-content'/>");
				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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
umlaut_borrow_direct-1.0.2 test/dummy/tmp/cache/assets/sprockets/v3.0/Yn/YNlTV8OYOF5SF1eM6QdEtM_TG9tTpTkaPFSWHl-FsjM.cache