2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-12 10:05:39 +00:00

Merge pull request #2333 from matmair/multiple-admin-btn

allow admin buttons to be assigned by class
This commit is contained in:
Oliver
2021-11-20 08:27:26 +11:00
committed by GitHub

View File

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