mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 01:11:55 +02:00
Update get-gov-admin.js
This commit is contained in:
parent
e9332edc8b
commit
113b9b62bd
1 changed files with 5 additions and 8 deletions
|
@ -164,19 +164,16 @@ function openInNewTab(el, removeAttribute = false){
|
|||
|
||||
// Change the button text
|
||||
nearestSpan = button.querySelector("span")
|
||||
if (button.classList.contains('usa-button')) {
|
||||
nearestSpan.innerText = "Copy email";
|
||||
} else {
|
||||
nearestSpan.innerText = "Copy";
|
||||
}
|
||||
nearestSpan.innerText = "Copied to clipboard"
|
||||
|
||||
setTimeout(function() {
|
||||
// Change back to the copy icon
|
||||
buttonIcon.setAttribute('xlink:href', currentHref);
|
||||
usa-button__small
|
||||
if (button.classList.)
|
||||
nearestSpan.innerText = "Copy"
|
||||
if (button.classList.contains('usa-button')) {
|
||||
nearestSpan.innerText = "Copy email";
|
||||
} else {
|
||||
nearestSpan.innerText = "Copy";
|
||||
}
|
||||
}, 2000);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue