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 192-197 Link Here
192
    <script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
192
    <script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
193
    <script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script>
193
    <script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script>
194
    <script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script>
194
    <script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script>
195
    <script src=/intranet-tmpl/lib/jquery/activatemana.js></script>
195
    [%# Add WYSIWYG editor for htmlarea system preferences %]
196
    [%# Add WYSIWYG editor for htmlarea system preferences %]
196
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
197
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
197
[% END %]
198
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-2 / +1 lines)
Lines 65-71 Web services: Link Here
65
             - "Security token used to authenticate on mana:"
65
             - "Security token used to authenticate on mana:"
66
             - pref: ManaToken
66
             - pref: ManaToken
67
               class: Text
67
               class: Text
68
             - <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>
68
             - <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>
69
        -
69
        -
70
            - 'Fields automatically shared with mana'
70
            - 'Fields automatically shared with mana'
71
            - pref: AutoShareWithMana
71
            - pref: AutoShareWithMana
72
- 

Return to bug 17047