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

add image editing to library setup

This commit is contained in:
Luke Pulverenti 2015-10-16 01:36:16 -04:00
parent 8a2b6dbea0
commit e6020421a1
77 changed files with 338 additions and 109 deletions

View file

@ -121,7 +121,9 @@
});
}
function showEditor(itemId) {
function showEditor(itemId, options) {
options = options || {};
HttpClient.send({
@ -132,7 +134,9 @@
currentItemId = itemId;
var dlg = PaperDialogHelper.createDialog();
var dlg = PaperDialogHelper.createDialog({
theme: options.theme
});
var html = '';
html += '<h2 class="dialogHeader">';
@ -170,7 +174,7 @@
}
window.ImageUploader = {
show: function (itemId) {
show: function (itemId, options) {
var deferred = DeferredBuilder.Deferred();
@ -179,7 +183,7 @@
require(['components/paperdialoghelper'], function () {
showEditor(itemId);
showEditor(itemId, options);
});
return deferred.promise();
}