From 490d16b4c6ba113ceca468de79479e1166437395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20V=C3=A9ron?= Date: Mon, 17 Apr 2017 10:12:49 +0200 Subject: [PATCH] =?UTF-8?q?Bug=2014224:=20(follow-up):=20Make=20=C3=A4?= =?UTF-8?q?=C3=B6=C3=BC=20display=20properly=20after=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch iixes display of öäü etc. immediately after input. To reproduce do the following for test plan step 7): - Enter "Buchrücken ist beschädigt", - Click "Submit changes" Result: - Field shows: "Buchr�cken ist besch�digt". Same with éàè etc. - Same in message "...has been saved and sent to the library." To test apply patch, repeat steps above, verify that text appears correctly. Signed-off-by: Marc Véron --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index dbeb3fa..983b6f3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -938,6 +938,7 @@ Using this account is not recommended because some parts of Koha will not functi var $self = $(this); var title = $(this).parent().siblings('.title').html(); var $noteinput = $(this).siblings('input[name="note"]').first(); + var $noteformessage = $noteinput.val(); var ajaxData = { 'action': 'issuenote', @@ -957,9 +958,8 @@ Using this account is not recommended because some parts of Koha will not functi $("#notesaved").removeClass("alert-error"); $("#notesaved").addClass("alert-info"); $noteinput.data('origvalue', data.note); - $noteinput.val(data.note); message = "

" + _("Your note about %s has been saved and sent to the library.").format(title) + "

"; - message += "

" + data.note + "

"; + message += "

" + $noteformessage + "

"; $self.hide(); } else if(data.status == 'removed') { $("#notesaved").removeClass("alert-error"); -- 2.1.4