Fix version-copy button according to #3373 (#3425)

This commit is contained in:
miggland 2022-07-28 00:06:32 +02:00 committed by GitHub
parent 8f9981a3b6
commit 2b1658e513
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'));