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 193-198 Link Here
193
    <script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
193
    <script src="[% interface %]/lib/jquery/plugins/humanmsg.js" type="text/javascript"></script>
194
    <script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script>
194
    <script src="[% interface %]/[% theme %]/js/ajax.js" type="text/javascript"></script>
195
    <script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script>
195
    <script src="[% interface %]/[% theme %]/js/pages/preferences.js" type="text/javascript"></script>
196
    <script src=/intranet-tmpl/lib/jquery/activatemana.js></script>
196
    [%# Add WYSIWYG editor for htmlarea system preferences %]
197
    [%# Add WYSIWYG editor for htmlarea system preferences %]
197
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
198
    [% INCLUDE 'wysiwyg-systempreferences.inc' %]
198
[% END %]
199
[% 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