Skip to content
Snippets Groups Projects
Commit 4fc5f158 authored by Lillian Gray's avatar Lillian Gray
Browse files

Updated permalink copying to latest version from Quang - #4

parent cbe2c517
Branches
No related merge requests found
...@@ -224,11 +224,7 @@ $('.getPlink').click(function(event) { ...@@ -224,11 +224,7 @@ $('.getPlink').click(function(event) {
try { try {
var successful = document.execCommand('copy'); var successful = document.execCommand('copy');
var message = successful? 'successfully' : 'unsuccessfully'; var message = successful? 'successfully' : 'unsuccessfully';
window.alert("Link copied successfully and ready to be pasted!")
var nofMessage = $("<span></span>").text("Link copied!");
if (!nofMessage.parents("#plink-form").length === 1) {
$("#plink-form").append(nofMessage);
}
} catch(err) { } catch(err) {
console.log("link copying failed"); console.log("link copying failed");
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment