jellyfin-web/dashboard-ui/scripts/mypreferencescommon.js

18 lines
830 B
JavaScript
Raw Normal View History

2015-07-28 12:42:24 -07:00
$(document).on('pageshowready', "#myPreferencesMenuPage", function () {
2015-05-27 22:51:48 -07:00
var page = this;
var userId = getParameterByName('userId') || Dashboard.getCurrentUserId();
$('.lnkDisplayPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + userId);
$('.lnkLanguagePreferences', page).attr('href', 'mypreferenceslanguages.html?userId=' + userId);
2015-07-03 10:55:29 -07:00
$('.lnkHomeScreenPreferences', page).attr('href', 'mypreferenceshome.html?userId=' + userId);
2015-05-27 22:51:48 -07:00
$('.lnkMyProfile', page).attr('href', 'myprofile.html?userId=' + userId);
2015-07-29 19:35:11 -07:00
$('.lnkSync', page).attr('href', 'mysyncsettings.html?userId=' + userId);
2015-09-11 09:26:06 -07:00
if (Dashboard.capabilities().SupportsSync) {
2015-07-29 19:35:11 -07:00
page.querySelector('.lnkSync').classList.remove('hide');
} else {
page.querySelector('.lnkSync').classList.add('hide');
}
2015-05-27 22:51:48 -07:00
});