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];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -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 : {

View File

@ -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 : {

View File

@ -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 : {

View File

@ -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 : {

View File

@ -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 : {

View File

@ -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 : {