Merge pull request #1580 from matmair/BUG-copy

fixing bug from refactor
This commit is contained in:
Oliver 2021-05-14 07:50:33 +10:00 committed by GitHub
commit 033aa29531
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@ function attachClipboard(selector, containerselector, textElement) {
return document.getElementById(textElement).textContent;
}
} else {
text = function() {
text = function(trigger) {
var content = trigger.parentElement.parentElement.textContent;return content.trim();
}
}
@ -22,7 +22,6 @@ function attachClipboard(selector, containerselector, textElement) {
text: text,
container: containerselector
});
console.log(cis);
}
@ -81,7 +80,6 @@ function inventreeDocReady() {
attachClipboard('.clip-btn');
attachClipboard('.clip-btn', 'modal-about'); // modals
attachClipboard('.clip-btn-version', 'modal-about', 'about-copy-text'); // version-text
}
function isFileTransfer(transfer) {