@ViewHelpers.AjaxAntiForgeryToken(Html)
@@ -16,6 +18,15 @@ "Manage", linkIdOnly: true)) + @if (Model.IsLocked) + { + @ViewHelpers.AlertDanger( + @ + Package '@Model.Id' has been locked. Please contact + support@nuget.org + ) + } + @ViewHelpers.Section( this, "Owners", @@ -103,7 +114,7 @@ var state = versionListedState[version]; // Update the listed checkbox to match the state of the package. var listed = state.Listed; - $(".page-delete-package input#Listed")[0].checked = listed; + $(".page-delete-package input#Listed").prop('checked', listed); // Update the text stating the download count on the delete form. var downloadCount = state.DownloadCount; $(".page-delete-package #downloadCount").text(downloadCount); diff --git a/src/NuGetGallery/Views/Packages/_DisplayPackageDeprecation.cshtml b/src/NuGetGallery/Views/Packages/_DisplayPackageDeprecation.cshtml index d28ef0bb47..319d872c56 100644 --- a/src/NuGetGallery/Views/Packages/_DisplayPackageDeprecation.cshtml +++ b/src/NuGetGallery/Views/Packages/_DisplayPackageDeprecation.cshtml @@ -32,7 +32,7 @@