From 312d26654e7e0da73806cde449f36596f2ec3ca4 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 23 May 2016 18:33:43 +0200 Subject: [PATCH] Fixed quote edit / delete on mobile --- .../install/files/js/3rdParty/redactor/plugins/wbbcode.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js index 9323484801..c0393dce6c 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js @@ -2043,16 +2043,18 @@ RedactorPlugins.wbbcode = function() { var $tooltip = $(''); // edit link - $('' + WCF.Language.get('wcf.bbcode.quote.edit') + '').click($.proxy(function(e) { + $('' + WCF.Language.get('wcf.bbcode.quote.edit') + '').on('click touchstart', $.proxy(function(e) { e.preventDefault(); + e.stopPropagation(); this.wbbcode._openQuoteEditOverlay($(event.currentTarget).closest('blockquote.quoteBox'), false); $('.redactor-link-tooltip').remove(); }, this)).appendTo($tooltip); // delete link - $('' + WCF.Language.get('wcf.bbcode.quote.delete') + '').click(function(event) { - event.preventDefault(); + $('' + WCF.Language.get('wcf.bbcode.quote.delete') + '').on('click touchstart', function(e) { + e.preventDefault(); + e.stopPropagation(); var $quote = $header.parent(); var $parent = $quote.parent(); -- 2.20.1