mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply #1004#issuecomment-605708819 suggestions
This commit is contained in:
parent
b8482730f8
commit
e9979954a8
2 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,6 @@ define(['connectionManager', 'userSettings', 'events'], function (connectionMana
|
||||||
|
|
||||||
updateCurrentCulture();
|
updateCurrentCulture();
|
||||||
|
|
||||||
events.on(connectionManager, 'localusersignedin', updateCurrentCulture);
|
|
||||||
events.on(userSettings, 'change', function (e, name) {
|
events.on(userSettings, 'change', function (e, name) {
|
||||||
if (name === 'language' || name === 'datetimelocale') {
|
if (name === 'language' || name === 'datetimelocale') {
|
||||||
updateCurrentCulture();
|
updateCurrentCulture();
|
||||||
|
|
|
@ -452,6 +452,9 @@ var AppInfo = {};
|
||||||
require(["autoFocuser"], function(autoFocuser) {
|
require(["autoFocuser"], function(autoFocuser) {
|
||||||
autoFocuser.enable();
|
autoFocuser.enable();
|
||||||
});
|
});
|
||||||
|
require(['globalize', 'connectionManager', 'events'], function (globalize, connectionManager, events) {
|
||||||
|
events.on(connectionManager, 'localusersignedin', globalize.updateCurrentCulture);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue