mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
channel fixes
This commit is contained in:
parent
382c0e393c
commit
c04ac2c462
7 changed files with 48 additions and 54 deletions
|
@ -17,7 +17,7 @@
|
|||
}
|
||||
|
||||
.backdropPage {
|
||||
background-color: rgba(0, 0, 0, .85)!important;
|
||||
background-color: rgba(0, 0, 0, .86)!important;
|
||||
}
|
||||
|
||||
.backdropContainer {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div id="channelTabs" class="itemTabs" style="display: none;">
|
||||
<div class="libraryViewNav scopedLibraryViewNav">
|
||||
<a href="#" class="ui-btn-active">${TabChannels}</a>
|
||||
<a href="channels.html" class="ui-btn-active">${TabChannels}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
};
|
||||
|
||||
function getSavedQueryId() {
|
||||
return 'channels-' + (getParameterByName('categoryId') || '');
|
||||
return 'channels-' + getParameterByName('id') + (getParameterByName('categoryId') || '');
|
||||
}
|
||||
|
||||
function showLoadingMessage(page) {
|
||||
|
@ -35,9 +35,7 @@
|
|||
$('.categoryTitle', page).html(item.Name);
|
||||
});
|
||||
|
||||
if (categoryId) {
|
||||
query.categoryId = categoryId;
|
||||
}
|
||||
|
||||
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
|
||||
|
||||
|
@ -55,7 +53,8 @@
|
|||
shape: "auto",
|
||||
context: 'channels',
|
||||
showTitle: true,
|
||||
centerText: true
|
||||
centerText: true,
|
||||
coverImage: true
|
||||
});
|
||||
|
||||
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
|
||||
|
@ -80,6 +79,9 @@
|
|||
|
||||
LibraryBrowser.saveQueryValues(getSavedQueryId(), query);
|
||||
|
||||
|
||||
}).always(function() {
|
||||
|
||||
hideLoadingMessage(page);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1165,7 +1165,7 @@
|
|||
}
|
||||
|
||||
if (version.Path) {
|
||||
html += '<div><span class="mediaInfoLabel">Path</span><span class="mediaInfoAttribute">' + version.Path + '</span></div>';
|
||||
html += '<div style="max-width:600px;overflow:hidden;"><span class="mediaInfoLabel">Path</span><span class="mediaInfoAttribute">' + version.Path + '</span></div>';
|
||||
}
|
||||
|
||||
if (version.Container) {
|
||||
|
|
|
@ -479,7 +479,11 @@
|
|||
if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.777777778) < .3) {
|
||||
options.shape = 'backdrop';
|
||||
}
|
||||
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .34) {
|
||||
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .33) {
|
||||
options.coverImage = true;
|
||||
options.shape = 'square';
|
||||
}
|
||||
else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.3333334) < .01) {
|
||||
options.coverImage = true;
|
||||
options.shape = 'square';
|
||||
}
|
||||
|
|
|
@ -11,9 +11,8 @@
|
|||
ApiClient.getPluginSecurityInfo().done(function (info) {
|
||||
|
||||
$('#txtSupporterKey', page).val(info.SupporterKey);
|
||||
$('#txtLegacyKey', page).val(info.LegacyKey);
|
||||
|
||||
if ((info.LegacyKey || info.SupporterKey) && !info.IsMBSupporter) {
|
||||
if (info.SupporterKey && !info.IsMBSupporter) {
|
||||
$('#txtSupporterKey', page).addClass("invalidEntry");
|
||||
$('.notSupporter', page).show();
|
||||
} else {
|
||||
|
@ -31,11 +30,9 @@
|
|||
var form = this;
|
||||
|
||||
var key = $('#txtSupporterKey', form).val();
|
||||
var legacyKey = $('#txtLegacyKey', form).val();
|
||||
|
||||
var info = {
|
||||
SupporterKey: key,
|
||||
LegacyKey: legacyKey
|
||||
SupporterKey: key
|
||||
};
|
||||
|
||||
ApiClient.updatePluginSecurityInfo(info).done(function () {
|
||||
|
@ -104,13 +101,13 @@
|
|||
|
||||
var email = $('#txtEmail', form).val();
|
||||
|
||||
var url = "http://mb3admin.com/admin/service/supporter/retrievekey?email="+email;
|
||||
var url = "http://mb3admin.com/admin/service/supporter/retrievekey?email=" + email;
|
||||
console.log(url);
|
||||
$.post(url).done(function (res) {
|
||||
var result = JSON.parse(res);
|
||||
Dashboard.hideLoadingMsg();
|
||||
if (result.Success) {
|
||||
Dashboard.alert("Key emailed to "+email);
|
||||
Dashboard.alert("Key emailed to " + email);
|
||||
} else {
|
||||
Dashboard.showError(result.ErrorMessage);
|
||||
}
|
||||
|
|
|
@ -33,15 +33,6 @@
|
|||
</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div style="margin: 2em 0;">
|
||||
|
||||
<label for="txtLegacyKey">MB2 Supporter Key</label>
|
||||
<input type="password" id="txtLegacyKey" name="txtLegacyKey" />
|
||||
<div class="fieldDescription">
|
||||
Some premium plugins may give credit for registrations with previous versions in MB2.
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<p>
|
||||
<button type="submit" id="mbLegacyKeyBtn" data-theme="b" data-icon="check">Save</button>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue