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 473-478 Link Here
473
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
473
[% Asset.js("lib/jquery/plugins/jquery.checkboxes.min.js") | $raw %]
474
[% INCLUDE 'datatables.inc' %]
474
[% INCLUDE 'datatables.inc' %]
475
<script>
475
<script>
476
    var MSG_UNDO_AUTOFILL_SUGGESTION =  _("Undo");
477
    var MSG_SEARCH_GOOGLE_BOOKS = _("Search Google Books");
476
    [% IF ( loggedinusername ) %]
478
    [% IF ( loggedinusername ) %]
477
        function enableCheckboxActions(){
479
        function enableCheckboxActions(){
478
            // Enable/disable controls if checkboxes are checked
480
            // 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