Skip to content

Commit 1ece8bb

Browse files
committed
Matadataviewer: Fix dialog button and scrolling
1 parent 8f7f773 commit 1ece8bb

File tree

3 files changed

+15
-19
lines changed

3 files changed

+15
-19
lines changed

MetadataViewer/Html/metadataviewer.js

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
define(['dialogHelper', 'detailtablecss', 'emby-button', 'emby-select', 'formDialogStyle'], function (dialogHelper) {
1+
define(['dialogHelper', 'globalize', 'loading', 'detailtablecss', 'emby-button', 'emby-select', 'formDialogStyle'], function (dialogHelper, globalize, loading) {
22

33
var currentItem;
44
var currentItemType;
@@ -76,19 +76,16 @@
7676

7777
ApiClient.getItem(Dashboard.getCurrentUserId(), itemId).then(function (item) {
7878

79-
var dlg = dialogHelper.createDialog({
80-
size: 'large'
81-
});
82-
83-
//dlg.classList.add('ui-body-b');
84-
//dlg.classList.add('background-theme-b');
85-
dlg.classList.add('formDialog');
79+
var dialogOptions = {
80+
removeOnClose: true,
81+
size: 'fullscreen'
82+
};
8683

87-
var html = '';
84+
var dlg = dialogHelper.createDialog(dialogOptions);
8885

89-
html += Globalize.translateDocument(template);
86+
dlg.classList.add('formDialog');
9087

91-
dlg.innerHTML = html;
88+
dlg.innerHTML = globalize.translateDocument(template);
9289
document.body.appendChild(dlg);
9390

9491
dlg.querySelector('.formDialogHeaderTitle').innerHTML = "Raw Metadata for: " + item.Name;

MetadataViewer/Html/metadataviewer.template.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<div class="formDialogHeader">
2-
<button is="emby-button" class="btnCancel autoSize" tabindex="-1"><i class="md-icon">&#xE5C4;</i></button>
3-
<div class="formDialogHeaderTitle">
4-
</div>
2+
<button is="emby-button" class="btnCancel autoSize button-flat" tabindex="-1" style="background: none;"><i class="md-icon">&#xE5C4;</i></button>
3+
<h3 class="formDialogHeaderTitle"></h3>
54
</div>
65

76
<div class="formDialogContent smoothScrollY">
8-
<div style="width:90%; margin:auto;">
7+
<div class="dialogContentInner">
98
<h2>Lookup Criteria:</h2>
109
<form class="popupMetadataForm" style="margin:auto;">
1110
<div id="searchCriteria"></div>
1211
<div id="searchCriteriaEditable">
1312
<table class="detailTable">
1413
<tr>
15-
<td style="width: 7em;"><label for="selectLanguage" class="selectLabel">Language:</label></td>
14+
<td style="width: 7em; vertical-align: top;"><label for="selectLanguage" class="selectLabel">Language:</label></td>
1615
<td>
17-
<select id="selectLanguage" style="max-width: 20em;">
16+
<select id="selectLanguage" style="max-width: 20em; color: #fff !important;">
1817
<option value=""></option>
1918
<option value="en">English</option>
2019
<option value="de">German</option>

MetadataViewer/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
8-
[assembly: AssemblyTitle("MetadataViewer Beta 12")]
9-
[assembly: AssemblyDescription("Beta 12")]
8+
[assembly: AssemblyTitle("MetadataViewer Beta 13")]
9+
[assembly: AssemblyDescription("Beta 13")]
1010
[assembly: AssemblyConfiguration("")]
1111
[assembly: AssemblyCompany("")]
1212
[assembly: AssemblyProduct("MetadataViewer")]

0 commit comments

Comments
 (0)