diff --git a/src/Orchard.Web/Themes/TheAdmin/Scripts/admin.js b/src/Orchard.Web/Themes/TheAdmin/Scripts/admin.js index 446653b2f..2ea76dd81 100644 --- a/src/Orchard.Web/Themes/TheAdmin/Scripts/admin.js +++ b/src/Orchard.Web/Themes/TheAdmin/Scripts/admin.js @@ -62,10 +62,11 @@ $(this).closest("form").find(".apply-bulk-actions-auto:first").click(); }); - $("body").on("click", "[itemprop~='RemoveUrl']", function () { + $("body").on("click", "[itemprop~='RemoveUrl']", function (e) { // don't show the confirm dialog if the link is also UnsafeUrl, as it will already be handled in base.js if ($(this).filter("[itemprop~='UnsafeUrl']").length == 1) { - return false; + e.preventDefault(); + return; } // use a custom message if its set in data-message