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

improve live stream pinging

This commit is contained in:
Luke Pulverenti 2015-04-20 14:04:02 -04:00
parent 6daaed3bcc
commit 74129c934a
2 changed files with 12 additions and 7 deletions

View file

@ -524,7 +524,7 @@
return $.when(promises);
}
var homePageDismissValue = '12';
var homePageDismissValue = '14';
var homePageTourKey = 'homePageTour';
function dismissWelcome(page, userId) {
@ -588,14 +588,19 @@
function loadConfigureViewsWelcomeMessage(page, userId) {
$('.btnMyPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + userId);
Dashboard.getCurrentUser().done(function (user) {
// Need the timeout because previous methods in the chain have popups that will be in the act of closing
setTimeout(function () {
if (user.Policy.EnableUserPreferenceAccess) {
$('.btnMyPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + userId);
$('.popupConfigureViews', page).popup('open');
// Need the timeout because previous methods in the chain have popups that will be in the act of closing
setTimeout(function () {
}, 500);
$('.popupConfigureViews', page).popup('open');
}, 500);
}
});
}
$(document).on('pageinit', "#indexPage", function () {