mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated nuget
This commit is contained in:
parent
4b722b3282
commit
aea2d1c42a
1 changed files with 4 additions and 14 deletions
|
@ -31,23 +31,14 @@
|
||||||
|
|
||||||
var packageVersion;
|
var packageVersion;
|
||||||
|
|
||||||
if (installedPlugin) {
|
if (!installedPlugin) {
|
||||||
|
|
||||||
// Select the first available package with the same update class as the installed version
|
|
||||||
packageVersion = packageInfo.versions.filter(function (current) {
|
|
||||||
|
|
||||||
return current.classification == installedPlugin.UpdateClass;
|
|
||||||
})[0];
|
|
||||||
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$('#pCurrentVersion', page).hide().html("");
|
$('#pCurrentVersion', page).hide().html("");
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we don't have a package version to select, pick the first release build
|
// If we don't have a package version to select, pick the first release build
|
||||||
if (!packageVersion) {
|
if (!packageVersion) {
|
||||||
|
|
||||||
// Select the first available package with the same update class as the installed version
|
|
||||||
packageVersion = packageInfo.versions.filter(function (current) {
|
packageVersion = packageInfo.versions.filter(function (current) {
|
||||||
|
|
||||||
return current.classification == "Release";
|
return current.classification == "Release";
|
||||||
|
@ -57,20 +48,19 @@
|
||||||
// If we still don't have a package version to select, pick the first Beta build
|
// If we still don't have a package version to select, pick the first Beta build
|
||||||
if (!packageVersion) {
|
if (!packageVersion) {
|
||||||
|
|
||||||
// Select the first available package with the same update class as the installed version
|
|
||||||
packageVersion = packageInfo.versions.filter(function (current) {
|
packageVersion = packageInfo.versions.filter(function (current) {
|
||||||
|
|
||||||
return current.classification == "Beta";
|
return current.classification == "Beta";
|
||||||
})[0];
|
})[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectmenu.selectmenu('refresh');
|
||||||
|
|
||||||
if (packageVersion) {
|
if (packageVersion) {
|
||||||
var val = packageVersion.versionStr + '|' + packageVersion.classification;
|
var val = packageVersion.versionStr + '|' + packageVersion.classification;
|
||||||
|
|
||||||
$('#selectVersion', page).val(val);
|
selectmenu.val(val).selectmenu('refresh');
|
||||||
}
|
}
|
||||||
|
|
||||||
selectmenu.selectmenu('refresh');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderPackage(pkg, installedPlugins, pluginSecurityInfo, page) {
|
function renderPackage(pkg, installedPlugins, pluginSecurityInfo, page) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue