From c078c3a81d52d6578cb164e64d681b6ce9ca4bb5 Mon Sep 17 00:00:00 2001 From: Antonin Delpeuch Date: Wed, 11 Sep 2019 17:53:38 +0100 Subject: [PATCH] Fix change of language. Closes #2158. --- main/webapp/modules/core/scripts/facets/list-facet.js | 2 +- main/webapp/modules/core/scripts/index/lang-settings-ui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main/webapp/modules/core/scripts/facets/list-facet.js b/main/webapp/modules/core/scripts/facets/list-facet.js index 33b1b3094..a02c57650 100644 --- a/main/webapp/modules/core/scripts/facets/list-facet.js +++ b/main/webapp/modules/core/scripts/facets/list-facet.js @@ -725,7 +725,7 @@ ListFacet.prototype._setChoiceCountLimit = function(choiceCount) { "command/core/set-preference", { name : "ui.browsing.listFacet.limit", - value : n + value : JSON.stringify(n) }, function(o) { if (o.code === "ok") { diff --git a/main/webapp/modules/core/scripts/index/lang-settings-ui.js b/main/webapp/modules/core/scripts/index/lang-settings-ui.js index b30f5a9d9..b322ba825 100644 --- a/main/webapp/modules/core/scripts/index/lang-settings-ui.js +++ b/main/webapp/modules/core/scripts/index/lang-settings-ui.js @@ -34,7 +34,7 @@ Refine.SetLanguageUI = function(elmt) { async : false, data : { name : "userLang", - value : $("#langDD option:selected").val() + value : JSON.stringify($("#langDD option:selected").val()) }, success : function(data) { alert($.i18n('core-index-lang/page-reload'));