From bf60360b26c76f39d41107654dfb4549813b79a6 Mon Sep 17 00:00:00 2001 From: David Leoni Date: Wed, 3 Dec 2014 14:52:06 +0100 Subject: [PATCH] fixes language context in browser calls --- extensions/freebase/module/scripts/extension.js | 2 +- extensions/gdata/module/scripts/index/importing-controller.js | 2 +- extensions/gdata/module/scripts/project/exporters.js | 2 +- main/webapp/modules/core/scripts/index.js | 2 +- main/webapp/modules/core/scripts/index/lang-settings-ui.js | 4 ++-- main/webapp/modules/core/scripts/preferences.js | 2 +- main/webapp/modules/core/scripts/project.js | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/freebase/module/scripts/extension.js b/extensions/freebase/module/scripts/extension.js index f15d04cb6..0ef2ce855 100644 --- a/extensions/freebase/module/scripts/extension.js +++ b/extensions/freebase/module/scripts/extension.js @@ -39,7 +39,7 @@ var lang = navigator.language.split("-")[0] || navigator.userLanguage.split("-")[0]; var dictionary = ""; $.ajax({ - url : "/command/core/load-language?", + url : "command/core/load-language?", type : "POST", async : false, data : { diff --git a/extensions/gdata/module/scripts/index/importing-controller.js b/extensions/gdata/module/scripts/index/importing-controller.js index dda358354..886764385 100644 --- a/extensions/gdata/module/scripts/index/importing-controller.js +++ b/extensions/gdata/module/scripts/index/importing-controller.js @@ -36,7 +36,7 @@ var lang = navigator.language.split("-")[0] || navigator.userLanguage.split("-")[0]; var dictionary = ""; $.ajax({ - url : "/command/core/load-language?", + url : "command/core/load-language?", type : "POST", async : false, data : { diff --git a/extensions/gdata/module/scripts/project/exporters.js b/extensions/gdata/module/scripts/project/exporters.js index d6e5d6209..b4368e9b6 100644 --- a/extensions/gdata/module/scripts/project/exporters.js +++ b/extensions/gdata/module/scripts/project/exporters.js @@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. var dictionary = ""; $.ajax({ - url : "/command/core/load-language?", + url : "command/core/load-language?", type : "POST", async : false, data : { diff --git a/main/webapp/modules/core/scripts/index.js b/main/webapp/modules/core/scripts/index.js index b557cdea4..64531c2ba 100644 --- a/main/webapp/modules/core/scripts/index.js +++ b/main/webapp/modules/core/scripts/index.js @@ -40,7 +40,7 @@ var Refine = { var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var dictionary = ""; $.ajax({ - url : "/command/core/load-language?", + url : "command/core/load-language?", type : "POST", async : false, data : { 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 9c1d75c16..72e3dc8fc 100644 --- a/main/webapp/modules/core/scripts/index/lang-settings-ui.js +++ b/main/webapp/modules/core/scripts/index/lang-settings-ui.js @@ -11,7 +11,7 @@ Refine.SetLanguageUI = function(elmt) { $.ajax({ - url : "/command/core/get-languages?", + url : "command/core/get-languages?", type : "GET", async : false, data : { @@ -29,7 +29,7 @@ Refine.SetLanguageUI = function(elmt) { this._elmts.set_lan_btn.bind('click', function(e) { $.ajax({ - url : "/command/core/set-preference?", + url : "command/core/set-preference?", type : "POST", async : false, data : { diff --git a/main/webapp/modules/core/scripts/preferences.js b/main/webapp/modules/core/scripts/preferences.js index 20c963cbd..42009d642 100644 --- a/main/webapp/modules/core/scripts/preferences.js +++ b/main/webapp/modules/core/scripts/preferences.js @@ -36,7 +36,7 @@ var preferenceUIs = []; var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var dictionary = ""; $.ajax({ -url : "/command/core/load-language?", +url : "command/core/load-language?", type : "POST", async : false, data : { diff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js index 3f81b8778..d83c61fb2 100644 --- a/main/webapp/modules/core/scripts/project.js +++ b/main/webapp/modules/core/scripts/project.js @@ -37,7 +37,7 @@ var ui = {}; var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var dictionary = ""; $.ajax({ - url : "/command/core/load-language?", + url : "command/core/load-language?", type : "POST", async : false, data : {