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

update preferences menu

This commit is contained in:
Luke Pulverenti 2016-02-14 15:38:19 -05:00
parent d4504e80a2
commit 63e7a14025
3 changed files with 12 additions and 41 deletions

View file

@ -704,36 +704,7 @@ var Dashboard = {
showUserFlyout: function () {
require(['jqmpanel'], function () {
var html = '<div data-role="panel" data-position="right" data-display="overlay" id="userFlyout" data-position-fixed="true" data-theme="a">';
html += '<h3 class="userHeader">';
html += '</h3>';
html += '<form>';
html += '<p class="preferencesContainer"></p>';
html += '<p><button data-mini="true" type="button" onclick="Dashboard.logout();" data-icon="lock">' + Globalize.translate('ButtonSignOut') + '</button></p>';
html += '</form>';
html += '</div>';
$(document.body).append(html);
var userFlyout = document.querySelector('#userFlyout');
ImageLoader.lazyChildren(userFlyout);
$(userFlyout).panel({}).panel("open").on("panelclose", function () {
$(this).off("panelclose").remove();
});
ConnectionManager.user(window.ApiClient).then(function (user) {
Dashboard.updateUserFlyout(userFlyout, user);
});
});
Dashboard.navigate('mypreferencesmenu.html?userId=' + ApiClient.getCurrentUserId());
},
updateUserFlyout: function (elem, user) {