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;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cardContent:hover .cardImage {
|
.cardContent:not(.noHoverEffect):hover .cardImage {
|
||||||
opacity: .5;
|
opacity: .5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2382,7 +2382,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
renderGenres: function (elem, item, context) {
|
renderGenres: function (elem, item, context, limit) {
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
|
@ -2390,6 +2390,10 @@
|
||||||
|
|
||||||
for (var i = 0, length = genres.length; i < length; i++) {
|
for (var i = 0, length = genres.length; i < length; i++) {
|
||||||
|
|
||||||
|
if (limit && i >= limit) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
html += '<span> / </span>';
|
html += '<span> / </span>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -531,7 +531,7 @@
|
||||||
$(this).off("popupafterclose").off("mouseenter").off("mouseleave").remove();
|
$(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);
|
LiveTvHelpers.renderMiscProgramInfo($('.miscTvProgramInfo', popup), item);
|
||||||
|
|
||||||
popup.parents().prev('.ui-popup-screen').remove();
|
popup.parents().prev('.ui-popup-screen').remove();
|
||||||
|
|
|
@ -37,8 +37,11 @@
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
var href = configPage && !Dashboard.isConnectMode() ?
|
var isConnectMode = Dashboard.isConnectMode();
|
||||||
Dashboard.getConfigurationPageUrl(configPage.Name) :
|
var configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null;
|
||||||
|
|
||||||
|
var href = configPage && !isConnectMode ?
|
||||||
|
configPageUrl :
|
||||||
null;
|
null;
|
||||||
|
|
||||||
html += "<div data-id='" + plugin.Id + "' data-name='" + plugin.Name + "' class='card backdropCard alternateHover bottomPaddedCard'>";
|
html += "<div data-id='" + plugin.Id + "' data-name='" + plugin.Name + "' class='card backdropCard alternateHover bottomPaddedCard'>";
|
||||||
|
@ -50,7 +53,14 @@
|
||||||
|
|
||||||
if (href) {
|
if (href) {
|
||||||
html += '<a class="cardContent" href="' + 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">';
|
html += '<div class="cardContent">';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,11 +135,11 @@
|
||||||
|
|
||||||
var elem = $('.installedPlugins', page).html(html).trigger('create');
|
var elem = $('.installedPlugins', page).html(html).trigger('create');
|
||||||
|
|
||||||
$('.btnNoConfig', elem).on('click', function () {
|
$('.noConfigPluginCard', elem).on('click', function () {
|
||||||
showNoConfigurationMessage();
|
showNoConfigurationMessage();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.btnConnectPlugin', elem).on('click', function () {
|
$('.connectModePluginCard', elem).on('click', function () {
|
||||||
showConnectMessage();
|
showConnectMessage();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue