mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Force locale in ajax data.
This commit is contained in:
parent
4524237d37
commit
f7078f9a7d
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,10 @@ app = Sammy('#main', function (sam) {
|
||||||
c = this;
|
c = this;
|
||||||
method = typeof method !== 'undefined' ? method : 'GET';
|
method = typeof method !== 'undefined' ? method : 'GET';
|
||||||
data = typeof data !== 'undefined' ? data : {};
|
data = typeof data !== 'undefined' ? data : {};
|
||||||
|
if (window.navigator && window.navigator.language && (typeof data.locale === 'undefined')) {
|
||||||
|
data.locale = window.navigator.language;
|
||||||
|
}
|
||||||
|
|
||||||
var args = data;
|
var args = data;
|
||||||
auth = "Basic "+ btoa(store.get('user') +':'+ atob(store.get('password')));
|
auth = "Basic "+ btoa(store.get('user') +':'+ atob(store.get('password')));
|
||||||
if (uri == '/postinstall') {
|
if (uri == '/postinstall') {
|
||||||
|
|
Loading…
Reference in a new issue