mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
enable multiple admin buttons on one page
This commit is contained in:
parent
8c82d2f900
commit
7e478c332a
@ -208,7 +208,7 @@ function inventreeDocReady() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Callback for "admin view" button
|
// Callback for "admin view" button
|
||||||
$('#admin-button').click(function() {
|
$('#admin-button, .admin-button').click(function() {
|
||||||
var url = $(this).attr('url');
|
var url = $(this).attr('url');
|
||||||
|
|
||||||
location.href = url;
|
location.href = url;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
<button id='admin-button' title='{% trans "View in administration panel" %}' type='button' class='btn btn-primary' url='{{ url }}'>
|
<button id='admin-button' title='{% trans "View in administration panel" %}' type='button' class='btn btn-primary admin-button' url='{{ url }}'>
|
||||||
<span class='fas fa-user-shield'></span>
|
<span class='fas fa-user-shield'></span>
|
||||||
</button>
|
</button>
|
Loading…
Reference in New Issue
Block a user