1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update translations

This commit is contained in:
Luke Pulverenti 2015-09-25 01:15:29 -04:00
parent 764a5ac824
commit c2e474e8e9
105 changed files with 13294 additions and 12883 deletions

View file

@ -1,4 +1,15 @@
$(document).on('pageshow', "#myPreferencesMenuPage", function () {
pageIdOn('pageinit', 'myPreferencesMenuPage', function () {
var page = this;
$('.btnLogout', page).on('click', function () {
Dashboard.logout();
});
});
pageIdOn('pageshow', 'myPreferencesMenuPage', function () {
var page = this;
@ -16,9 +27,21 @@
page.querySelector('.lnkSync').classList.add('hide');
}
Dashboard.getCurrentUser().done(function (user) {
page.querySelector('.headerUser').innerHTML = user.Name;
if (AppInfo.isNativeApp && $.browser.safari && user.Policy.IsAdministrator) {
page.querySelector('.adminSection').classList.remove('hide');
} else {
page.querySelector('.adminSection').classList.add('hide');
}
});
if (AppInfo.isNativeApp && $.browser.safari) {
page.querySelector('.lnkServer').classList.remove('hide');
page.querySelector('.userSection').classList.remove('hide');
} else {
page.querySelector('.lnkServer').classList.add('hide');
page.querySelector('.userSection').classList.add('hide');
}
});