From 7645492cc2e457bc118235d411740478a60fe70f Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 14 Sep 2022 17:03:51 +1000 Subject: [PATCH] Adds callback for clipboard button (#3678) --- InvenTree/InvenTree/static/script/inventree/inventree.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/InvenTree/InvenTree/static/script/inventree/inventree.js b/InvenTree/InvenTree/static/script/inventree/inventree.js index ea0f2a681c..d66ad7013d 100644 --- a/InvenTree/InvenTree/static/script/inventree/inventree.js +++ b/InvenTree/InvenTree/static/script/inventree/inventree.js @@ -140,6 +140,8 @@ function inventreeDocReady() { // start watcher startNotificationWatcher(); + attachClipboard('.clip-btn'); + // always refresh when the focus returns $(document).focus(function(){ startNotificationWatcher();