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'));