Fixed wrong tooltip for quote headers
authorAlexander Ebert <ebert@woltlab.com>
Sun, 26 Oct 2014 20:00:34 +0000 (21:00 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 26 Oct 2014 20:00:34 +0000 (21:00 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index 265302327e5e33804065e31ce0886a4644264fbb..a9d1e8d3adada50bc479374c58b69f12ecc3b404 100644 (file)
@@ -416,6 +416,7 @@ RedactorPlugins.wmonkeypatch = function() {
                                }
                        }).bind(this);
                        
+                       // observe.buttons
                        var $mpButtons = this.observe.buttons;
                        this.observe.buttons = (function(e, btnName) {
                                $mpButtons.call(this, e, btnName);
@@ -429,6 +430,15 @@ RedactorPlugins.wmonkeypatch = function() {
                                $toggleButtons(parent, 'sub', 'a.re-subscript', false, 'redactor-act');
                                $toggleButtons(parent, 'sup', 'a.re-superscript', false, 'redactor-act');
                        }).bind(this);
+                       
+                       // observe.showTooltip
+                       var $mpShowTooltip = this.observe.showTooltip;
+                       this.observe.showTooltip = (function(e) {
+                               var $link = $(e.target);
+                               if (!$link.hasClass('redactorQuoteEdit')) {
+                                       $mpShowTooltip.call(this, e);
+                               }
+                       }).bind(this);
                },
                
                /**