fix sync layout

This commit is contained in:
Luke Pulverenti 2016-08-01 14:16:07 -04:00
parent e0d2a9298b
commit ee11212148
4 changed files with 16 additions and 2 deletions

View File

@ -1,4 +1,4 @@
define(['browser', 'datetime', 'libraryBrowser', 'listView', 'userdataButtons'], function (browser, datetime, libraryBrowser, listView, userdataButtons) {
define(['browser', 'datetime', 'libraryBrowser', 'listView', 'userdataButtons', 'cardStyle'], function (browser, datetime, libraryBrowser, listView, userdataButtons) {
function showSlideshowMenu(context) {
require(['scripts/slideshow'], function () {

View File

@ -186,7 +186,7 @@
</div>
</div>
<div class="pageTabContent ehsContent" id="playlistTab" data-index="2">
<div class="playlist itemsContainer" is="emby-itemscontainer" style="max-width: 800px; margin: 3em auto 0; padding-bottom: 200px;">
<div class="playlist itemsContainer vertical-list" is="emby-itemscontainer" style="max-width: 800px; margin: 3em auto 0; padding-bottom: 200px;">
</div>
</div>
</div>

View File

@ -113,6 +113,10 @@
function allowSwipeOn(elem) {
if (dom.parentWithTag(elem, 'input')) {
return false;
}
if (elem.classList) {
return !elem.classList.contains('hiddenScrollX') && !elem.classList.contains('smoothScrollX') && !elem.classList.contains('libraryViewNav');
}

View File

@ -179,6 +179,8 @@
showTargetName = !hasLocalSync();
}
var hasOpenSection = false;
for (var i = 0, length = jobs.length; i < length; i++) {
var job = jobs[i];
@ -188,9 +190,11 @@
if (targetName != lastTargetName) {
if (lastTargetName) {
html += '</div>';
html += '<br/>';
html += '<br/>';
html += '<br/>';
hasOpenSection = false;
}
lastTargetName = targetName;
@ -200,12 +204,18 @@
html += '<div>' + targetName + '</div>';
html += '</div>';
html += '<div class="itemsContainer vertical-wrap">';
hasOpenSection = true;
}
}
html += getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage);
}
if (hasOpenSection) {
html += '</div>';
}
var elem = $('.syncActivity', page).html(html).lazyChildren();
$('.btnJobMenu', elem).on('click', function () {