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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (+2 lines)
Lines 442-447 Link Here
442
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
442
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
443
[% INCLUDE 'datatables.inc' %]
443
[% INCLUDE 'datatables.inc' %]
444
<script>
444
<script>
445
    var MSG_UNDO_AUTOFILL_SUGGESTION =  _("Undo");
446
    var MSG_SEARCH_GOOGLE_BOOKS = _("Search Google Books");
445
    [% IF ( loggedinusername ) %]
447
    [% IF ( loggedinusername ) %]
446
        function enableCheckboxActions(){
448
        function enableCheckboxActions(){
447
            // Enable/disable controls if checkboxes are checked
449
            // Enable/disable controls if checkboxes are checked
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js (-6 / +2 lines)
Lines 25-37 Link Here
25
        self.$elm = $(elm);
25
        self.$elm = $(elm);
26
        self.fields = fields;
26
        self.fields = fields;
27
27
28
        var UNDO_STRING = _("Undo");
29
        var GOOGLE_BOOKS_STRING = _("Search Google Books");
30
31
        /* decorate element as autofiller */
28
        /* decorate element as autofiller */
32
        var $inputgroup = $('<div class="input-prepend">');
29
        var $inputgroup = $('<div class="input-prepend">');
33
        self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + UNDO_STRING + '</span>');
30
        self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + MSG_UNDO_AUTOFILL_SUGGESTION + '</span>');
34
        self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + GOOGLE_BOOKS_STRING + '</span>');
31
        self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + MSG_SEARCH_GOOGLE_BOOKS + '</span>');
35
        self.$error = $('<span class="add-on" style="display:none;"></span>');
32
        self.$error = $('<span class="add-on" style="display:none;"></span>');
36
        self.$elm.wrap($inputgroup);
33
        self.$elm.wrap($inputgroup);
37
        self.$elm.after(self.$error);
34
        self.$elm.after(self.$error);
38
- 

Return to bug 14242