fix quirks on details

This commit is contained in:
Luke Pulverenti 2016-06-28 22:44:07 -04:00
parent 968431b3ab
commit 2846174b86
5 changed files with 87 additions and 78 deletions

View File

@ -32,7 +32,7 @@
var hasId = false; var hasId = false;
var txtLookupId = page.querySelectorAll('.txtLookupId'); var txtLookupId = page.querySelectorAll('.txtLookupId');
for (i = 0, length = identifyField.length; i < length; i++) { for (i = 0, length = txtLookupId.length; i < length; i++) {
var value = txtLookupId[i].value; var value = txtLookupId[i].value;

View File

@ -145,7 +145,7 @@
<div id="scenesCollapsible" class="detailSection hide"> <div id="scenesCollapsible" class="detailSection hide">
<h1> <h1>
${HeaderScenes} ${HeaderScenes}
<a class="detailSectionHeaderButton chapterSettingsButton clearLink hide" style="margin-top: -8px; display: inline-block;" href="metadataadvanced.html" title="${ButtonSettings}"> <a class="detailSectionHeaderButton chapterSettingsButton clearLink hide" style="margin-top: -8px; display: inline-block;" href="librarysettings.html" title="${ButtonSettings}">
<button is="paper-icon-button-light" class="autoSize"><i class="md-icon">settings</i></button> <button is="paper-icon-button-light" class="autoSize"><i class="md-icon">settings</i></button>
</a> </a>
</h1> </h1>

View File

@ -468,7 +468,7 @@
}); });
} }
var itemGenres = page.querySelectorAll('.itemGenres'); var itemGenres = page.querySelectorAll('.itemGenres');
for (i = 0, length = itemMiscInfo.length; i < length; i++) { for (i = 0, length = itemGenres.length; i < length; i++) {
LibraryBrowser.renderGenres(itemGenres[i], item, null, isStatic); LibraryBrowser.renderGenres(itemGenres[i], item, null, isStatic);
} }
@ -712,6 +712,10 @@
var similarCollapsible = page.querySelector('#similarCollapsible'); var similarCollapsible = page.querySelector('#similarCollapsible');
if (!similarCollapsible) {
return;
}
if (item.Type == "Movie" || item.Type == "Trailer" || item.Type == "Series" || item.Type == "Program" || item.Type == "Recording" || item.Type == "Game" || item.Type == "MusicAlbum" || item.Type == "MusicArtist" || item.Type == "ChannelVideoItem") { if (item.Type == "Movie" || item.Type == "Trailer" || item.Type == "Series" || item.Type == "Program" || item.Type == "Recording" || item.Type == "Game" || item.Type == "MusicAlbum" || item.Type == "MusicArtist" || item.Type == "ChannelVideoItem") {
similarCollapsible.classList.remove('hide'); similarCollapsible.classList.remove('hide');
} }
@ -2111,7 +2115,9 @@
Dashboard.getCurrentUser().then(function (user) { Dashboard.getCurrentUser().then(function (user) {
LibraryBrowser.showMoreCommands(button, currentItem.Id, currentItem.Type, LibraryBrowser.getMoreCommands(currentItem, user)); LibraryBrowser.showMoreCommands(button, currentItem.Id, currentItem.Type, LibraryBrowser.getMoreCommands(currentItem, user)).then(function() {
reload(view, params);
});
}); });
} }

View File

@ -889,6 +889,8 @@
}); });
} }
return new Promise(function (resolve, reject) {
var serverId = ApiClient.serverInfo().Id; var serverId = ApiClient.serverInfo().Id;
require(['actionsheet'], function (actionsheet) { require(['actionsheet'], function (actionsheet) {
@ -960,7 +962,7 @@
LibraryBrowser.editImages(itemId); LibraryBrowser.editImages(itemId);
break; break;
case 'identify': case 'identify':
LibraryBrowser.identifyItem(itemId); LibraryBrowser.identifyItem(itemId).then(resolve, reject);
break; break;
case 'refresh': case 'refresh':
require(['refreshDialog'], function (refreshDialog) { require(['refreshDialog'], function (refreshDialog) {
@ -977,6 +979,7 @@
}); });
}); });
});
}, },
identifyItem: function (itemId) { identifyItem: function (itemId) {

View File

@ -767,7 +767,7 @@
if (mainDrawerButton) { if (mainDrawerButton) {
if (!visible && browserInfo.mobile) { if (!visible && browserInfo.mobile) {
mainDrawerButton.classList.add('hide'); mainDrawerButton.classList.remove('hide');
} else { } else {
mainDrawerButton.classList.remove('hide'); mainDrawerButton.classList.remove('hide');
} }