mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update person editor
This commit is contained in:
parent
d665b12b82
commit
ca37d6a03d
6 changed files with 28 additions and 18 deletions
|
@ -1056,7 +1056,7 @@
|
|||
var template = this.response;
|
||||
var dlg = paperDialogHelper.createDialog({
|
||||
removeOnClose: true,
|
||||
size: 'small'
|
||||
size: 'medium'
|
||||
});
|
||||
|
||||
dlg.classList.add('ui-body-b');
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</paper-button>
|
||||
</div>
|
||||
|
||||
<form class="editItemMetadataForm editMetadataForm ">
|
||||
<form class="editItemMetadataForm editMetadataForm" style="margin:0;">
|
||||
<div class="metadataFormFields">
|
||||
|
||||
<div style="padding: 0 0 10px;">
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
var template = this.response;
|
||||
var dlg = paperDialogHelper.createDialog({
|
||||
removeOnClose: true,
|
||||
size: 'small'
|
||||
size: 'medium'
|
||||
});
|
||||
|
||||
dlg.classList.add('ui-body-b');
|
||||
|
@ -28,9 +28,9 @@
|
|||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
$('#txtPersonName', dlg).val(person.Name || '');
|
||||
$('#selectPersonType', dlg).val(person.Type || '');
|
||||
$('#txtPersonRole', dlg).val(person.Role || '');
|
||||
$('.txtPersonName', dlg).val(person.Name || '');
|
||||
$('.selectPersonType', dlg).val(person.Type || '');
|
||||
$('.txtPersonRole', dlg).val(person.Role || '');
|
||||
|
||||
paperDialogHelper.open(dlg);
|
||||
|
||||
|
@ -52,9 +52,9 @@
|
|||
|
||||
submitted = true;
|
||||
|
||||
person.Name = $('#txtPersonName', dlg).val();
|
||||
person.Type = $('#selectPersonType', dlg).val();
|
||||
person.Role = $('#txtPersonRole', dlg).val() || null;
|
||||
person.Name = $('.txtPersonName', dlg).val();
|
||||
person.Type = $('.selectPersonType', dlg).val();
|
||||
person.Role = $('.txtPersonRole', dlg).val() || null;
|
||||
|
||||
paperDialogHelper.close(dlg);
|
||||
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
<form class="popupEditPersonForm" style="max-width: none;margin:0;">
|
||||
|
||||
<div>
|
||||
<paper-input type="text" id="txtPersonName" required="required" label="${LabelName}"></paper-input>
|
||||
<paper-input type="text" class="txtPersonName" required="required" label="${LabelName}"></paper-input>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
<div>
|
||||
<label for="selectPersonType" class="selectLabel">${LabelType}</label>
|
||||
<select id="selectPersonType" data-mini="true">
|
||||
<select id="selectPersonType" class="selectPersonType" data-mini="true">
|
||||
<option value=""></option>
|
||||
<option value="Actor">${OptionActor}</option>
|
||||
<option value="Composer">${OptionComposer}</option>
|
||||
|
@ -25,7 +25,7 @@
|
|||
</select>
|
||||
</div>
|
||||
<div>
|
||||
<paper-input type="text" id="txtPersonRole" label="${LabelPersonRole}"></paper-input>
|
||||
<paper-input type="text" class="txtPersonRole" label="${LabelPersonRole}"></paper-input>
|
||||
<div class="fieldDescription">${LabelPersonRoleHelp}</div>
|
||||
</div>
|
||||
<br />
|
||||
|
|
|
@ -792,6 +792,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
pageClassOn('pageinit', 'page', function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
var isLibraryPage = page.classList.contains('libraryPage');
|
||||
|
||||
if (isLibraryPage) {
|
||||
|
||||
var navs = page.querySelectorAll('.libraryViewNav');
|
||||
for (var i = 0, length = navs.length; i < length; i++) {
|
||||
initHeadRoom(navs[i]);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
pageClassOn('pagebeforeshow', 'page', function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -823,11 +838,6 @@
|
|||
document.body.classList.add('libraryDocument');
|
||||
document.body.classList.remove('dashboardDocument');
|
||||
document.body.classList.remove('hideMainDrawer');
|
||||
|
||||
var navs = page.querySelectorAll('.libraryViewNav');
|
||||
for (var i = 0, length = navs.length; i < length; i++) {
|
||||
initHeadRoom(navs[i]);
|
||||
}
|
||||
}
|
||||
else if (page.classList.contains('type-interior')) {
|
||||
|
||||
|
|
|
@ -1640,7 +1640,7 @@ var AppInfo = {};
|
|||
function initializeApiClient(apiClient) {
|
||||
|
||||
if (AppInfo.enableAppStorePolicy) {
|
||||
apiClient.getAvailablePlugins = function() {
|
||||
apiClient.getAvailablePlugins = function () {
|
||||
return Promise.resolve([]);
|
||||
};
|
||||
apiClient.getInstalledPlugins = function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue