From f233cae2c01cfd6a14b77e4f19bceae6123e83c2 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Tue, 5 Feb 2019 02:04:52 +0000 Subject: [PATCH] Bug 14242: (follow-up) Translateable js strings, $raw filter Sponsored-by: Region Halland Signed-off-by: Maryse Simard Signed-off-by: Lisette Scheer --- koha-tmpl/opac-tmpl/bootstrap/js/autofill.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js index 23ef57a425..327566fb46 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/autofill.js @@ -25,10 +25,13 @@ self.$elm = $(elm); self.fields = fields; + var UNDO_STRING = _("Undo"); + var GOOGLE_BOOKS_STRING = _("Search Google Books"); + /* decorate element as autofiller */ var $inputgroup = $('
'); - self.$undo = $(''); - self.$fillbtn = $(' Search Google Books '); + self.$undo = $(''); + self.$fillbtn = $('' + GOOGLE_BOOKS_STRING + ''); self.$error = $(''); self.$elm.wrap($inputgroup); self.$elm.after(self.$error); -- 2.11.0