From 70916bb11f2ddd9480654e74dc59e45329bd4bb9 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 19 Nov 2021 21:53:08 +0100 Subject: [PATCH] allow admin buttons to be assigned by class --- InvenTree/InvenTree/static/script/inventree/inventree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/static/script/inventree/inventree.js b/InvenTree/InvenTree/static/script/inventree/inventree.js index 85ae042728..078cb52924 100644 --- a/InvenTree/InvenTree/static/script/inventree/inventree.js +++ b/InvenTree/InvenTree/static/script/inventree/inventree.js @@ -208,7 +208,7 @@ function inventreeDocReady() { }); // Callback for "admin view" button - $('#admin-button').click(function() { + $('#admin-button, .admin-button').click(function() { var url = $(this).attr('url'); location.href = url;