@@ -, +, @@
---
koha-tmpl/intranet-tmpl/lib/jquery/activatemana.js | 6 ++----
koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt | 1 +
.../prog/en/modules/admin/preferences/web_services.pref | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
--- a/koha-tmpl/intranet-tmpl/lib/jquery/activatemana.js
+++ a/koha-tmpl/intranet-tmpl/lib/jquery/activatemana.js
@@ -10,10 +10,8 @@ $(document).ready(function(){
dataType: "json",
})
.done(function(result){
- console.log(result.token);
- $("#pref_ManaToken").val(result.token);
- $("#pref_ManaToken").trigger("input");
- }).fail( function( result ){
+ $("#pref_ManaToken").val(result.token);
+ $("#pref_ManaToken").trigger("input");
});
return false;
});
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt
@@ -197,6 +197,7 @@
[% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
[% Asset.js("js/ajax.js") | $raw %]
[% Asset.js("js/pages/preferences.js") | $raw %]
+ [% Asset.js("lib/jquery/activatemana.js") | $raw %]
[%# Add WYSIWYG editor for htmlarea system preferences %]
[% INCLUDE 'wysiwyg-systempreferences.inc' %]
[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref
@@ -71,7 +71,7 @@ Web services:
- "Security token used to authenticate on mana:"
- pref: ManaToken
class: Text
- -
You need a security token to authenticate on Mana. If this sytem preference is empty, please fill in the following form, you will receive an email to confirm and activate your token.