Skip to content

Commit

Permalink
Cleaned up copy to clipboard code for checksums and tokens [ref #6039,
Browse files Browse the repository at this point in the history
  • Loading branch information
mheppler committed Jan 27, 2021
1 parent 0d08717 commit 814c005
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/main/webapp/resources/js/dv_rebind_bootstrap_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ function bind_bsui_components(){
var clipboard = new ClipboardJS('button.btn-copy, span.checksum-truncate');

clipboard.on('success', function (e) {
console.log(e);
// DEV TOOL DEBUG
// console.log(e);
});
clipboard.on('error', function (e) {
console.log(e);
Expand Down Expand Up @@ -188,14 +189,8 @@ function checksumTruncate(){
}
// ADD CLIPBOARD ICON
$(this).append(' <span class="glyphicon glyphicon-copy"></span>');
});
// USE CLIPBOARD.JS TO COPY
var clipboard = new Clipboard('span.checksum-truncate');
clipboard.on('success', function(e) {
console.log(e);
});
clipboard.on('error', function(e) {
console.log(e);

// COPY TO CLIPBOARD MOVE TO bind_bsui_components() ABOVE
});
}

Expand Down

0 comments on commit 814c005

Please sign in to comment.