From 2b1658e5137002d713abe268f8921a85109d179d Mon Sep 17 00:00:00 2001 From: miggland Date: Thu, 28 Jul 2022 00:06:32 +0200 Subject: [PATCH] Fix version-copy button according to #3373 (#3425) --- InvenTree/InvenTree/static/script/inventree/inventree.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/InvenTree/InvenTree/static/script/inventree/inventree.js b/InvenTree/InvenTree/static/script/inventree/inventree.js index 2c879449ca..ea0f2a681c 100644 --- a/InvenTree/InvenTree/static/script/inventree/inventree.js +++ b/InvenTree/InvenTree/static/script/inventree/inventree.js @@ -110,7 +110,7 @@ function inventreeDocReady() { launchModalForm(`/about/`, { no_post: true, after_render: function() { - attachClipboard('.clip-btn', 'modal-form'); + attachClipboard('.clip-btn', 'modal-form', 'about-copy-text'); } }); }); @@ -122,9 +122,6 @@ function inventreeDocReady() { }); }); - // Initialize clipboard-buttons - attachClipboard('.clip-btn'); - // Generate brand-icons $('.brand-icon').each(function(i, obj) { loadBrandIcon($(this), $(this).attr('brand_name'));