Fixed quote edit / delete on mobile
authorAlexander Ebert <ebert@woltlab.com>
Mon, 23 May 2016 16:33:43 +0000 (18:33 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 23 May 2016 16:33:49 +0000 (18:33 +0200)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js

index 9323484801a65f0816aa67b7839cf2c6410887bb..c0393dce6c1de522666de8e2ec44b4b48269a632 100644 (file)
@@ -2043,16 +2043,18 @@ RedactorPlugins.wbbcode = function() {
                        var $tooltip = $('<span class="redactor-link-tooltip" />');
                        
                        // edit link
-                       $('<a href="#">' + WCF.Language.get('wcf.bbcode.quote.edit') + '</a>').click($.proxy(function(e) {
+                       $('<a href="#">' + WCF.Language.get('wcf.bbcode.quote.edit') + '</a>').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
-                       $('<a href="#">' + WCF.Language.get('wcf.bbcode.quote.delete') + '</a>').click(function(event) {
-                               event.preventDefault();
+                       $('<a href="#">' + WCF.Language.get('wcf.bbcode.quote.delete') + '</a>').on('click touchstart', function(e) {
+                               e.preventDefault();
+                               e.stopPropagation();
                                
                                var $quote = $header.parent();
                                var $parent = $quote.parent();