This patch adds a required JS asset to the patron API key interface.
Without it, JS-based functions in the toolbar do not work.
To test you must have RESTOAuth2ClientCredentials enabled.
- From a patron detail page, choose More -> Manage API keys.
- Test the toolbar buttons on this page, especially "Search to hold"
and the various print options.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
[% USE Koha %]
+[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha › Patrons › API Keys</title>
</div>
[% MACRO jsinclude BLOCK %]
- <script>
- $(document).ready(function(){
- $(".delete").on("click", function(e){
- return confirmDelete(_("Are you sure you want to delete this key?"));
- });
+ [% Asset.js("js/members-menu.js") %]
+ <script>
+ $(document).ready(function(){
+ $(".delete").on("click", function(e){
+ return confirmDelete(_("Are you sure you want to delete this key?"));
});
- </script>
+ });
+ </script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]