mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
take photos into the core
This commit is contained in:
parent
b8eec7fef8
commit
72db499cf6
10 changed files with 133 additions and 77 deletions
|
@ -191,9 +191,9 @@
|
|||
}
|
||||
|
||||
.galleryImageContainer:hover {
|
||||
-moz-box-shadow: 0 0 20px 3px #2572EB;
|
||||
-webkit-box-shadow: 0 0 20px 3px #2572EB;
|
||||
box-shadow: 0 0 20px 3px #2572EB;
|
||||
-moz-box-shadow: 0 0 20px 3px #38c;
|
||||
-webkit-box-shadow: 0 0 20px 3px #38c;
|
||||
box-shadow: 0 0 20px 3px #38c;
|
||||
}
|
||||
|
||||
.galleryImage {
|
||||
|
@ -456,9 +456,9 @@ a.itemTag:hover {
|
|||
}
|
||||
|
||||
.itemDetailGalleryLink img:hover {
|
||||
-moz-box-shadow: 0 0 20px 3px #2572EB;
|
||||
-webkit-box-shadow: 0 0 20px 3px #2572EB;
|
||||
box-shadow: 0 0 20px 3px #2572EB;
|
||||
-moz-box-shadow: 0 0 20px 3px #38c;
|
||||
-webkit-box-shadow: 0 0 20px 3px #38c;
|
||||
box-shadow: 0 0 20px 3px #38c;
|
||||
}
|
||||
|
||||
.parentName {
|
||||
|
|
|
@ -48,9 +48,9 @@
|
|||
}
|
||||
|
||||
.posterItem:hover .posterItemImage {
|
||||
-moz-box-shadow: 0 0 12px 7px #2572EB;
|
||||
-webkit-box-shadow: 0 0 12px 7px #2572EB;
|
||||
box-shadow: 0 0 12px 7px #2572EB;
|
||||
-moz-box-shadow: 0 0 12px 7px #38c;
|
||||
-webkit-box-shadow: 0 0 12px 7px #38c;
|
||||
box-shadow: 0 0 12px 7px #38c;
|
||||
}
|
||||
|
||||
.coveredPosterItemImage {
|
||||
|
|
|
@ -253,7 +253,7 @@ h1 .imageLink {
|
|||
color: #fff!important;
|
||||
text-shadow: none!important;
|
||||
font-weight: 400!important;
|
||||
font-size: 16px;
|
||||
font-size: 15px;
|
||||
}
|
||||
|
||||
.sidebarLinks a:hover {
|
||||
|
@ -262,7 +262,7 @@ h1 .imageLink {
|
|||
}
|
||||
|
||||
.sidebarLinks a.selectedSidebarLink {
|
||||
background: #2572EB!important;
|
||||
background: #38c!important;
|
||||
color: #fff!important;
|
||||
}
|
||||
|
||||
|
@ -310,7 +310,7 @@ h1 .imageLink {
|
|||
}
|
||||
|
||||
.selectedDashboardPanelLink {
|
||||
background: #2572EB;
|
||||
background: #38c;
|
||||
color: #fff!important;
|
||||
}
|
||||
|
||||
|
@ -570,9 +570,9 @@ h1 .imageLink {
|
|||
}
|
||||
|
||||
.posterViewItem:hover, .userItem:hover, .tileItem:hover {
|
||||
-moz-box-shadow: 0 0 20px 3px #2572EB;
|
||||
-webkit-box-shadow: 0 0 20px 3px #2572EB;
|
||||
box-shadow: 0 0 20px 3px #2572EB;
|
||||
-moz-box-shadow: 0 0 20px 3px #38c;
|
||||
-webkit-box-shadow: 0 0 20px 3px #38c;
|
||||
box-shadow: 0 0 20px 3px #38c;
|
||||
}
|
||||
|
||||
@media all and (min-width: 750px) {
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
</select>
|
||||
</div>
|
||||
<div class="availableImagesPaging" style="margin: 0; display: inline-block;"></div>
|
||||
<div style="margin: 0; display: none; vertical-align: middle; margin-left: 10px;">
|
||||
<div style="margin: 0; display: inline-block; vertical-align: middle; margin-left: 10px;">
|
||||
<label for="chkAllLanguages">All Languages</label>
|
||||
<input type="checkbox" id="chkAllLanguages" data-mini="true" />
|
||||
</div>
|
||||
|
|
|
@ -461,8 +461,40 @@
|
|||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div data-role="popup" data-transition="slidefade" id="popupConfirmDelete" class="popup" data-theme="a">
|
||||
|
||||
<div class="ui-bar-a" style="text-align: center; padding: 0 20px;">
|
||||
<h3>Confirm Deletion</h3>
|
||||
</div>
|
||||
|
||||
<div data-role="content">
|
||||
<form class="popupConfirmDeleteForm">
|
||||
<p>The following file location <strong style='color: red;'>will be deleted</strong>:</p>
|
||||
<p class="deletePath"></p>
|
||||
|
||||
<p>If you wish to continue, please confirm by entering the value of <span id="challengeValueText"></span></p>
|
||||
|
||||
<p>
|
||||
<input type="number" id="txtDeleteTest" data-mini="true" pattern="[0-9]*" required="required" />
|
||||
<input id="fldChallengeValue" type="hidden" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<button type="submit" data-theme="b" data-icon="check">
|
||||
Ok
|
||||
</button>
|
||||
<button type="button" data-icon="delete" onclick="$(this).parents('.popup').popup('close');">
|
||||
Cancel
|
||||
</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$('.editItemMetadataForm').off('submit', EditItemMetadataPage.onSubmit).on('submit', EditItemMetadataPage.onSubmit);
|
||||
$('.popupConfirmDeleteForm').off('submit', EditItemMetadataPage.onDeleteFormSubmitted).on('submit', EditItemMetadataPage.onDeleteFormSubmitted);
|
||||
</script>
|
||||
|
||||
</div>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
</p>
|
||||
|
||||
<p class="collectionTypeFieldDescription">
|
||||
* Requires the use of a plugin, e.g. GameBrowser or MB Photos.
|
||||
* Requires the use of a plugin, e.g. GameBrowser or MB Bookshelf.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
|
||||
if (pkg.previewImage || pkg.thumbImage) {
|
||||
|
||||
var color = pkg.tileColor || "#2572EB";
|
||||
var color = pkg.tileColor || "#38c";
|
||||
var img = pkg.previewImage ? pkg.previewImage : pkg.thumbImage;
|
||||
$('#pPreviewImage', page).show().html("<img src='" + img + "' style='max-width: 100%;-moz-box-shadow: 0 0 20px 3px " + color + ";-webkit-box-shadow: 0 0 20px 3px " + color + ";box-shadow: 0 0 20px 3px " + color + ";' />");
|
||||
} else {
|
||||
|
|
|
@ -770,14 +770,11 @@
|
|||
|
||||
if (item.Type == "Episode") {
|
||||
$('#lblIndexNumber', page).html('Episode number');
|
||||
}
|
||||
else if (item.Type == "Season") {
|
||||
} else if (item.Type == "Season") {
|
||||
$('#lblIndexNumber', page).html('Season number');
|
||||
}
|
||||
else if (item.Type == "Audio") {
|
||||
} else if (item.Type == "Audio") {
|
||||
$('#lblIndexNumber', page).html('Track number');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$('#lblIndexNumber', page).html('Number');
|
||||
}
|
||||
} else {
|
||||
|
@ -789,11 +786,9 @@
|
|||
|
||||
if (item.Type == "Episode") {
|
||||
$('#lblParentIndexNumber', page).html('Season number');
|
||||
}
|
||||
else if (item.Type == "Audio") {
|
||||
} else if (item.Type == "Audio") {
|
||||
$('#lblParentIndexNumber', page).html('Disc number');
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$('#lblParentIndexNumber', page).html('Parent number');
|
||||
}
|
||||
} else {
|
||||
|
@ -918,8 +913,7 @@
|
|||
date = parseISO8601Date(item.DateCreated, { toLocal: true });
|
||||
|
||||
$('#txtDateAdded', page).val(date.toISOString().slice(0, 10));
|
||||
}
|
||||
catch (e) {
|
||||
} catch (e) {
|
||||
$('#txtDateAdded', page).val('');
|
||||
}
|
||||
} else {
|
||||
|
@ -931,8 +925,7 @@
|
|||
date = parseISO8601Date(item.PremiereDate, { toLocal: true });
|
||||
|
||||
$('#txtPremiereDate', page).val(date.toISOString().slice(0, 10));
|
||||
}
|
||||
catch (e) {
|
||||
} catch (e) {
|
||||
$('#txtPremiereDate', page).val('');
|
||||
}
|
||||
} else {
|
||||
|
@ -944,8 +937,7 @@
|
|||
date = parseISO8601Date(item.EndDate, { toLocal: true });
|
||||
|
||||
$('#txtEndDate', page).val(date.toISOString().slice(0, 10));
|
||||
}
|
||||
catch (e) {
|
||||
} catch (e) {
|
||||
$('#txtEndDate', page).val('');
|
||||
}
|
||||
} else {
|
||||
|
@ -1105,12 +1097,12 @@
|
|||
}
|
||||
return html;
|
||||
}
|
||||
|
||||
function populateInternetProviderSettings(page, item, lockedFields) {
|
||||
var container = $('#providerSettingsContainer', page);
|
||||
lockedFields = lockedFields || new Array();
|
||||
|
||||
var metadatafields = [
|
||||
|
||||
{ name: "Name" },
|
||||
{ name: "Overview" },
|
||||
{ name: "Genres" },
|
||||
|
@ -1156,6 +1148,25 @@
|
|||
}).get();
|
||||
}
|
||||
|
||||
function performDelete(page) {
|
||||
|
||||
$('#btnDelete', page).buttonEnabled(false);
|
||||
$('#btnRefresh', page).buttonEnabled(false);
|
||||
$('.btnSave', page).buttonEnabled(false);
|
||||
|
||||
$('#refreshLoading', page).show();
|
||||
|
||||
var parentId = currentItem.ParentId;
|
||||
|
||||
ApiClient.deleteItem(currentItem.Id).done(function () {
|
||||
|
||||
var elem = $('#' + parentId)[0];
|
||||
|
||||
$('.libraryTree').jstree("select_node", elem, true)
|
||||
.jstree("delete_node", '#' + currentItem.Id);
|
||||
});
|
||||
}
|
||||
|
||||
function editItemMetadataPage() {
|
||||
|
||||
var self = this;
|
||||
|
@ -1211,7 +1222,7 @@
|
|||
OfficialRating: $('#selectOfficialRating', form).val(),
|
||||
CustomRating: $('#selectCustomRating', form).val(),
|
||||
People: currentItem.People,
|
||||
EnableInternetProviders: $("#enableInternetProviders", form).prop('checked'),
|
||||
EnableInternetProviders: !$("#enableInternetProviders", form).prop('checked'),
|
||||
LockedFields: $('.selectLockedField', form).map(function () {
|
||||
var value = $(this).val();
|
||||
if (value != '') return value;
|
||||
|
@ -1313,6 +1324,19 @@
|
|||
$(source).parent().remove();
|
||||
list.listview('refresh');
|
||||
};
|
||||
|
||||
self.onDeleteFormSubmitted = function () {
|
||||
|
||||
var page = $(this).parents('.page');
|
||||
|
||||
if ($('#fldChallengeValue', page).val() != $('#txtDeleteTest', page).val()) {
|
||||
alert('The value entered is not correct. Please try again.');
|
||||
} else {
|
||||
performDelete(page);
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
window.EditItemMetadataPage = new editItemMetadataPage();
|
||||
|
@ -1565,39 +1589,39 @@
|
|||
});
|
||||
});
|
||||
|
||||
function getRandomInt(min, max) {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
}
|
||||
|
||||
$('#btnDelete', this).on('click', function () {
|
||||
|
||||
var msg = "<p>Are you sure you wish to delete this item from your library?</p>";
|
||||
|
||||
if (currentItem.LocationType != "Remote" && currentItem.LocationType != "Virtual") {
|
||||
msg = "<p>The following media location will be deleted:</p>";
|
||||
msg += "<p>" + currentItem.Path + "</p>";
|
||||
msg += "<p>Are you sure you wish to continue?</p>";
|
||||
}
|
||||
$('.deletePath', page).html((currentItem.Path || ''));
|
||||
|
||||
var val1 = getRandomInt(6, 12);
|
||||
var val2 = getRandomInt(8, 16);
|
||||
|
||||
$('#challengeValueText', page).html(val1 + ' * ' + val2 + ':');
|
||||
|
||||
var val = val1 * val2;
|
||||
|
||||
$('#fldChallengeValue', page).val(val);
|
||||
|
||||
$('#popupConfirmDelete', page).popup('open');
|
||||
|
||||
} else {
|
||||
|
||||
var msg = "<p>Are you sure you wish to delete this item from your library?</p>";
|
||||
|
||||
Dashboard.confirm(msg, "Confirm Deletion", function (result) {
|
||||
|
||||
if (result) {
|
||||
|
||||
$('#btnDelete', page).buttonEnabled(false);
|
||||
$('#btnRefresh', page).buttonEnabled(false);
|
||||
$('.btnSave', page).buttonEnabled(false);
|
||||
|
||||
$('#refreshLoading', page).show();
|
||||
|
||||
var parentId = currentItem.ParentId;
|
||||
|
||||
ApiClient.deleteItem(currentItem.Id).done(function () {
|
||||
|
||||
var elem = $('#' + parentId)[0];
|
||||
|
||||
$('.libraryTree').jstree("select_node", elem, true)
|
||||
.jstree("delete_node", '#' + currentItem.Id);
|
||||
});
|
||||
performDelete(page);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
$('.libraryTree', page).on('itemclicked', function (event, data) {
|
||||
|
|
|
@ -159,7 +159,7 @@
|
|||
html += '</ul>';
|
||||
|
||||
if (addPathMappingInfo) {
|
||||
html += '<p>Use <a href="librarypathmapping.html">path substitution</a> to map server paths to network shares that clients are able to access.</p>';
|
||||
html += '<p>Use <a href="librarypathmapping.html" style="font-weight:normal;">path substitution</a> to map server paths to network shares that clients are able to access.</p>';
|
||||
}
|
||||
|
||||
html += '<p>';
|
||||
|
@ -315,7 +315,7 @@
|
|||
{ name: "Games*", value: "games" },
|
||||
{ name: "Home videos", value: "homevideos" },
|
||||
{ name: "Music videos", value: "musicvideos" },
|
||||
{ name: "Photos*", value: "photos" },
|
||||
{ name: "Photos", value: "photos" },
|
||||
{ name: "Trailers", value: "trailers" },
|
||||
{ name: "Adult videos", value: "adultvideos" },
|
||||
{ name: "Mixed content", value: "mixed" }
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</p>
|
||||
|
||||
<p class="collectionTypeFieldDescription">
|
||||
* Requires the use of a plugin, e.g. GameBrowser or MB Photos.
|
||||
* Requires the use of a plugin, e.g. GameBrowser or MB Bookshelf.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue