mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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…
Reference in New Issue
Block a user