2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 20:46:47 +00:00

Adds callback for clipboard button (#3678) (#3679)

(cherry picked from commit 7645492cc2e457bc118235d411740478a60fe70f)
This commit is contained in:
Oliver 2022-09-14 17:50:15 +10:00 committed by GitHub
parent 66d6896925
commit c4c3cdcb31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,6 +140,8 @@ function inventreeDocReady() {
// start watcher // start watcher
startNotificationWatcher(); startNotificationWatcher();
attachClipboard('.clip-btn');
// always refresh when the focus returns // always refresh when the focus returns
$(document).focus(function(){ $(document).focus(function(){
startNotificationWatcher(); startNotificationWatcher();