Skip to content

Commit

Permalink
remove copy to clipboard function
Browse files Browse the repository at this point in the history
  • Loading branch information
afourmy committed Nov 1, 2019
1 parent 2b440b7 commit dd3f899
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions eNMS/static/inventory.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,6 @@ function showDeviceResultsPanel(device) {
});
}

// eslint-disable-next-line
function copyResultsToClipboard(id) {
let node = document.getElementById(`configurations-${id}`);
if (document.body.createTextRange) {
const range = document.body.createTextRange();
range.moveToElementText(node);
range.select();
} else if (window.getSelection) {
const selection = window.getSelection();
const range = document.createRange();
range.selectNodeContents(node);
selection.removeAllRanges();
selection.addRange(range);
} else {
alertify.notify("Selection not supported by your browser", "error", 5);
}
document.execCommand("copy");
}

Object.assign(action, {
"Device properties": (d) => {
console.log(d)
Expand Down

0 comments on commit dd3f899

Please sign in to comment.