mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Allow event propagation for RemoveUrl/UnsafeUrl links (#7994)
This commit is contained in:
parent
b0db0454a5
commit
cc5ffcd313
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user