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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt (-1 / +1 lines)
Lines 361-367 Link Here
361
        [% END %]
361
        [% END %]
362
        [% IF ( op_add && mandatoryfields ) %]
362
        [% IF ( op_add && mandatoryfields ) %]
363
        {
363
        {
364
            var FldsRequired = [[% mandatoryfields | html %]];
364
            var FldsRequired = [[% mandatoryfields | $raw %]];
365
            for (var i = 0; i < FldsRequired.length; i++) {
365
            for (var i = 0; i < FldsRequired.length; i++) {
366
                var rq_input = $('#' + FldsRequired[i]);
366
                var rq_input = $('#' + FldsRequired[i]);
367
                if (rq_input.length != 1) continue;
367
                if (rq_input.length != 1) continue;
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js (-3 / +5 lines)
Lines 25-34 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
28
        /* decorate element as autofiller */
31
        /* decorate element as autofiller */
29
        var $inputgroup = $('<div class="input-prepend">');
32
        var $inputgroup = $('<div class="input-prepend">');
30
        self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">Undo</span>');
33
        self.$undo = $('<span class="add-on" style="display:none;cursor:pointer;">' + UNDO_STRING + '</span>');
31
        self.$fillbtn = $('<span class="add-on" style="cursor:pointer;"> Search Google Books </span>');
34
        self.$fillbtn = $('<span class="add-on" style="cursor:pointer;">' + GOOGLE_BOOKS_STRING + '</span>');
32
        self.$error = $('<span class="add-on" style="display:none;"></span>');
35
        self.$error = $('<span class="add-on" style="display:none;"></span>');
33
        self.$elm.wrap($inputgroup);
36
        self.$elm.wrap($inputgroup);
34
        self.$elm.after(self.$error);
37
        self.$elm.after(self.$error);
35
- 

Return to bug 14242