fixes language context in browser calls

This commit is contained in:
David Leoni 2014-12-03 14:52:06 +01:00
parent c15f8d1ffd
commit bf60360b26
7 changed files with 8 additions and 8 deletions

View File

@ -39,7 +39,7 @@ var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0]; || navigator.userLanguage.split("-")[0];
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -36,7 +36,7 @@ var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0]; || navigator.userLanguage.split("-")[0];
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -40,7 +40,7 @@ var Refine = {
var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -11,7 +11,7 @@ Refine.SetLanguageUI = function(elmt) {
$.ajax({ $.ajax({
url : "/command/core/get-languages?", url : "command/core/get-languages?",
type : "GET", type : "GET",
async : false, async : false,
data : { data : {
@ -29,7 +29,7 @@ Refine.SetLanguageUI = function(elmt) {
this._elmts.set_lan_btn.bind('click', function(e) { this._elmts.set_lan_btn.bind('click', function(e) {
$.ajax({ $.ajax({
url : "/command/core/set-preference?", url : "command/core/set-preference?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -36,7 +36,7 @@ var preferenceUIs = [];
var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {

View File

@ -37,7 +37,7 @@ var ui = {};
var lang = (navigator.language|| navigator.userLanguage).split("-")[0]; var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = ""; var dictionary = "";
$.ajax({ $.ajax({
url : "/command/core/load-language?", url : "command/core/load-language?",
type : "POST", type : "POST",
async : false, async : false,
data : { data : {