mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update messages on pluginspage.js
This commit is contained in:
parent
f64c7b3818
commit
fd496448ac
4 changed files with 22 additions and 8 deletions
|
@ -129,7 +129,7 @@
|
|||
right: 0;
|
||||
}
|
||||
|
||||
.cardContent:hover .cardImage {
|
||||
.cardContent:not(.noHoverEffect):hover .cardImage {
|
||||
opacity: .5;
|
||||
}
|
||||
|
||||
|
|
|
@ -2382,7 +2382,7 @@
|
|||
}
|
||||
},
|
||||
|
||||
renderGenres: function (elem, item, context) {
|
||||
renderGenres: function (elem, item, context, limit) {
|
||||
|
||||
var html = '';
|
||||
|
||||
|
@ -2390,6 +2390,10 @@
|
|||
|
||||
for (var i = 0, length = genres.length; i < length; i++) {
|
||||
|
||||
if (limit && i >= limit) {
|
||||
break;
|
||||
}
|
||||
|
||||
if (i > 0) {
|
||||
html += '<span> / </span>';
|
||||
}
|
||||
|
|
|
@ -531,7 +531,7 @@
|
|||
$(this).off("popupafterclose").off("mouseenter").off("mouseleave").remove();
|
||||
});
|
||||
|
||||
LibraryBrowser.renderGenres($('.itemGenres', popup), item, 'livetv');
|
||||
LibraryBrowser.renderGenres($('.itemGenres', popup), item, 'livetv', 3);
|
||||
LiveTvHelpers.renderMiscProgramInfo($('.miscTvProgramInfo', popup), item);
|
||||
|
||||
popup.parents().prev('.ui-popup-screen').remove();
|
||||
|
|
|
@ -37,8 +37,11 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
var href = configPage && !Dashboard.isConnectMode() ?
|
||||
Dashboard.getConfigurationPageUrl(configPage.Name) :
|
||||
var isConnectMode = Dashboard.isConnectMode();
|
||||
var configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null;
|
||||
|
||||
var href = configPage && !isConnectMode ?
|
||||
configPageUrl :
|
||||
null;
|
||||
|
||||
html += "<div data-id='" + plugin.Id + "' data-name='" + plugin.Name + "' class='card backdropCard alternateHover bottomPaddedCard'>";
|
||||
|
@ -50,7 +53,14 @@
|
|||
|
||||
if (href) {
|
||||
html += '<a class="cardContent" href="' + href + '">';
|
||||
} else {
|
||||
}
|
||||
else if (!configPageUrl) {
|
||||
html += '<div class="cardContent noConfigPluginCard noHoverEffect">';
|
||||
}
|
||||
else if (isConnectMode) {
|
||||
html += '<div class="cardContent connectModePluginCard">';
|
||||
}
|
||||
else {
|
||||
html += '<div class="cardContent">';
|
||||
}
|
||||
|
||||
|
@ -125,11 +135,11 @@
|
|||
|
||||
var elem = $('.installedPlugins', page).html(html).trigger('create');
|
||||
|
||||
$('.btnNoConfig', elem).on('click', function () {
|
||||
$('.noConfigPluginCard', elem).on('click', function () {
|
||||
showNoConfigurationMessage();
|
||||
});
|
||||
|
||||
$('.btnConnectPlugin', elem).on('click', function () {
|
||||
$('.connectModePluginCard', elem).on('click', function () {
|
||||
showConnectMessage();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue