app/assets/javascripts/umlaut/load_permalink.js in umlaut-3.1.0.pre2 vs app/assets/javascripts/umlaut/load_permalink.js in umlaut-3.1.0
- old
+ new
@@ -3,24 +3,24 @@
$("*[data-umlaut-toggle-permalink]").click(function(event) {
event.preventDefault();
var originalLink = $(this)
- var valueContainer = $("#umlaut-permalink-value");
+ var valueContainer = $("#umlaut-permalink-container");
if (! valueContainer.data("loaded")) {
- valueContainer.html('<i class="spinner"></i>').show();
+ 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/>");
+ var a = $("<a class='umlaut-permalink-content'/>");
a.attr("href", href);
a.text(href);
valueContainer.html(a).data("loaded", true).show();
});
}
else {
valueContainer.toggle();
}
});
-});
\ No newline at end of file
+});