allow admin buttons to be assigned by class

This commit is contained in:
Matthias 2021-11-19 21:53:08 +01:00
parent 4e113798b4
commit 70916bb11f
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

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;