View | Details | Raw Unified | Return to bug 17047
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/lib/jquery/activatemana.js (-4 / +2 lines)
Lines 10-19 $(document).ready(function(){ Link Here
10
            dataType: "json",
10
            dataType: "json",
11
        })
11
        })
12
        .done(function(result){
12
        .done(function(result){
13
            console.log(result.token);
13
            $("#pref_ManaToken").val(result.token);
14
                $("#pref_ManaToken").val(result.token);
14
            $("#pref_ManaToken").trigger("input");
15
                $("#pref_ManaToken").trigger("input");
16
        }).fail( function( result ){
17
        });
15
        });
18
        return false;
16
        return false;
19
    });
17
    });
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences.tt (+1 lines)
Lines 197-202 Link Here
197
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
197
    [% Asset.js("lib/jquery/plugins/humanmsg.js") | $raw %]
198
    [% Asset.js("js/ajax.js") | $raw %]
198
    [% Asset.js("js/ajax.js") | $raw %]
199
    [% Asset.js("js/pages/preferences.js") | $raw %]
199
    [% Asset.js("js/pages/preferences.js") | $raw %]
200
    [% Asset.js("lib/jquery/activatemana.js") | $raw %]
200
    [%# Add WYSIWYG editor for htmlarea system preferences %]
201
    [%# Add WYSIWYG editor for htmlarea system preferences %]
201
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
202
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
202
[% END %]
203
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-2 / +1 lines)
Lines 71-77 Web services: Link Here
71
             - "Security token used to authenticate on mana:"
71
             - "Security token used to authenticate on mana:"
72
             - pref: ManaToken
72
             - pref: ManaToken
73
               class: Text
73
               class: Text
74
             - <br> 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. <script src=/intranet-tmpl/lib/jquery/activatemana.js></script> <br> <form> First name <input name="firstname" type="text" id="firstname"> <br> Last name <input name="lastname" type=text id=lastname> <br> Email address <input name="email" type=text id=email><br> <input type=submit id=activatemana value="Send"></form>
74
             - <br> 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. <br> <form> First name <input name="firstname" type="text" id="firstname"> <br> Last name <input name="lastname" type=text id=lastname> <br> Email address <input name="email" type=text id=email><br> <input type=submit id=activatemana value="Send"></form>
75
        -
75
        -
76
            - 'Fields automatically shared with mana'
76
            - 'Fields automatically shared with mana'
77
            - pref: AutoShareWithMana
77
            - pref: AutoShareWithMana
78
- 

Return to bug 17047