mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
allow admin buttons to be assigned by class
This commit is contained in:
parent
4e113798b4
commit
70916bb11f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user