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

sync updates

This commit is contained in:
Luke Pulverenti 2015-01-23 01:15:15 -05:00
parent 2ab7e15656
commit 9b452f3b53
85 changed files with 421 additions and 505 deletions

View file

@ -135,11 +135,11 @@
html += '<h1 style="display:inline-block; vertical-align:middle;" class="listHeader">' + Globalize.translate('HeaderLatestMedia') + '</h1>';
html += '<a href="mypreferencesdisplay.html" class="accentButton"><i class="fa fa-pencil"></i>' + Globalize.translate('ButtonEdit') + '</a>';
html += '</div>';
html += '<div>';
html += '<div class="itemsContainer">';
html += LibraryBrowser.getPosterViewHtml({
items: items,
preferThumb: true,
shape: 'homePageBackdrop',
shape: 'backdrop',
context: context || 'home',
showUnplayedIndicator: false,
showChildCountIndicator: true,
@ -148,7 +148,8 @@
html += '</div>';
}
$(elem).html(html).trigger('create').createCardMenus();
$(elem).html(html).lazyChildren();
$(elem).createCardMenus();
});
}
@ -170,7 +171,7 @@
if (result.Items.length) {
html += '<h1 class="listHeader">' + Globalize.translate('HeaderLatestChannelMedia') + '</h1>';
html += '<div>';
html += '<div class="itemsContainer">';
html += LibraryBrowser.getPosterViewHtml({
items: result.Items,
preferThumb: true,
@ -182,7 +183,8 @@
html += '</div>';
}
$(elem).html(html).trigger('create').createCardMenus();
$(elem).html(html).lazyChildren();
$(elem).createCardMenus();
});
}
@ -221,7 +223,7 @@
}
$(elem).html(html).trigger('create').createCardMenus();
$(elem).html(html).lazyChildren();
handleLibraryLinkNavigations(elem);
});
@ -257,7 +259,7 @@
html += '</div>';
}
$(elem).html(html).trigger('create').createCardMenus();
$(elem).html(html).lazyChildren();
handleLibraryLinkNavigations(elem);
});
@ -290,7 +292,7 @@
html += LibraryBrowser.getPosterViewHtml({
items: result.Items,
preferBackdrop: true,
shape: 'homePageBackdrop',
shape: 'backdrop',
overlayText: screenWidth >= 600,
showTitle: true,
showParentTitle: true,
@ -300,7 +302,7 @@
html += '</div>';
}
$(elem).html(html).trigger('create').createCardMenus();
$(elem).html(html).lazyChildren();
});
}
@ -350,7 +352,7 @@
var options = {
Limit: screenWidth >= 1600 ? 6 : (screenWidth >= 1440 ? 5 : (screenWidth >= 800 ? 6 : 6)),
Limit: screenWidth >= 1600 ? 10 : (screenWidth >= 1440 ? 5 : (screenWidth >= 800 ? 6 : 6)),
Fields: "PrimaryImageAspectRatio,SyncInfo",
Filters: "IsUnplayed",
UserId: Dashboard.getCurrentUserId(),
@ -368,9 +370,10 @@
html += '<div>';
var text = Globalize.translate('HeaderLatestFromChannel').replace('{0}', channel.Name);
html += '<h1 style="display:inline-block; vertical-align:middle;" class="' + cssClass + '">' + text + '</h1>';
html += '<a href="channelitems.html?context=channels&id=' + channel.Id + '" data-role="button" data-icon="arrow-r" data-mini="true" data-inline="true" data-iconpos="notext" class="sectionHeaderButton">d</a>';
html += '<a href="channelitems.html?context=channels&id=' + channel.Id + '" data-role="button" data-icon="arrow-r" data-mini="true" data-inline="true" data-iconpos="notext" class="sectionHeaderButton"></a>';
html += '</div>';
}
html += '<div class="itemsContainer">';
html += LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: 'autohome',
@ -380,8 +383,10 @@
context: 'channels',
lazy: true
});
html += '</div>';
$('#channel' + channel.Id + '', page).html(html).trigger('create').createCardMenus();
var elem = $('#channel' + channel.Id + '', page).html(html).lazyChildren().trigger('create');
$(elem).createCardMenus();
});
}
@ -419,7 +424,7 @@
lazy: true
});
elem.html(html).trigger('create').createCardMenus();
elem.html(html).lazyChildren();
});
}
@ -467,7 +472,7 @@
Sections.loadRecentlyAdded(elem, userId);
}
else if (section == 'librarytiles') {
Sections.loadLibraryTiles(elem, userId, 'homePageBackdrop', index);
Sections.loadLibraryTiles(elem, userId, 'backdrop', index);
}
else if (section == 'smalllibrarytiles') {
Sections.loadLibraryTiles(elem, userId, 'homePageSmallBackdrop', index);
@ -487,7 +492,7 @@
}
else if (section == 'folders') {
Sections.loadLibraryFolders(elem, userId, 'homePageBackdrop', index);
Sections.loadLibraryFolders(elem, userId, 'backdrop', index);
} else if (section == 'latestchannelmedia') {
Sections.loadLatestChannelMedia(elem, userId);