mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 03:14:10 +08:00
Handle UnsafeUrl and RemoveUrl clicks now and always for any future elements.
This commit is contained in:
@@ -223,7 +223,7 @@
|
||||
$(function () {
|
||||
var magicToken = $("input[name=__RequestVerificationToken]").first();
|
||||
if (!magicToken) { return; } // no sense in continuing if form POSTS will fail
|
||||
$("a[itemprop~=UnsafeUrl]").on("click", function() {
|
||||
$("body").on("click", "a[itemprop~=UnsafeUrl]", function() {
|
||||
var _this = $(this);
|
||||
var hrefParts = _this.attr("href").split("?");
|
||||
var form = $("<form action=\"" + hrefParts[0] + "\" method=\"POST\" />");
|
||||
|
Reference in New Issue
Block a user