From b437bee47921766055801e501cd73d5c7c50b784 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Magnus=20K=C3=BChn?= Date: Mon, 11 Feb 2013 20:35:07 +0100 Subject: [PATCH] Adding event-preventing in WCF.Action.Delete/Toggle --- wcfsetup/install/files/js/WCF.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 676051a5cb..dcf6581cd1 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -1691,6 +1691,7 @@ WCF.Action.Delete = Class.extend({ */ _click: function(event) { var $target = $(event.currentTarget); + event.preventDefault(); if ($target.data('confirmMessage')) { WCF.System.Confirmation.show($target.data('confirmMessage'), $.proxy(this._execute, this), { target: $target }); @@ -1847,6 +1848,7 @@ WCF.Action.Toggle = Class.extend({ */ _click: function(event) { var $target = $(event.currentTarget); + event.preventDefault(); if ($target.data('confirmMessage')) { WCF.System.Confirmation.show($target.data('confirmMessage'), $.proxy(this._execute, this), { target: $target }); -- 2.20.1