Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add a copy URI icon #211

Merged
merged 12 commits into from
Jun 7, 2021
Prev Previous commit
Next Next commit
Remove duplicate copy icon
  • Loading branch information
HagerDakroury committed Jun 7, 2021
commit fde93a0272111689262b10e5798f766552c8a131
10 changes: 2 additions & 8 deletions js/tree-edam-stand-alone.js
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ function interactive_edam_browser(){
text+
"</a>"+
'<button class="btn bg-edam-'+branch_of_term+' fg-edam-'+branch_of_term+'-light" type="button" style="font-size: 1em;">'+
'<i class="fas fa-copy""></i> URI'+
'<i class="fas fa-copy""></i> '+
'</button>'+
'</div>'
//+' <i class="glyphicon glyphicon-stop bg-edam-'+branch_of_term+' fg-edam-'+branch_of_term+'"></i></a>'
Expand Down Expand Up @@ -502,13 +502,7 @@ function interactive_edam_browser(){
if (tootip !== undefined) {
html_tootip=" data-toggle=\"tooltip\" data-placement='top' title=\""+tootip+"\"";
}

//adding the copy icon, can be extendable to other rows
let cpyInfo ="";
if (id=="uri-val"){
cpyInfo ="" + "<i class=\"fas fa-copy cpy-clipboard\""+ "id=\"cpy-uri\""+">" + " </i>" ;
}
$("<tr><th><span"+html_tootip+">"+name+"</span></th><td class=\""+id+"\">"+interactive_edam_uri(value, translate_uri_to_text)+cpyInfo+"</td></tr>").appendTo(table);
$("<tr><th><span"+html_tootip+">"+name+"</span></th><td class=\""+id+"\">"+interactive_edam_uri(value, translate_uri_to_text)+"</td></tr>").appendTo(table);
return id;
}

Expand Down