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
commit 6a235c9f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;