Allow event propagation for RemoveUrl/UnsafeUrl links (#7994)

This commit is contained in:
greg84 2018-03-22 19:21:11 +00:00 committed by Sébastien Ros
parent b0db0454a5
commit cc5ffcd313

View File

@ -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