Fix dblclick on InlineEditors
authorJoshua Rüsweg <ruesweg@woltlab.com>
Fri, 19 Jul 2019 20:26:33 +0000 (22:26 +0200)
committerJoshua Rüsweg <ruesweg@woltlab.com>
Fri, 19 Jul 2019 20:26:33 +0000 (22:26 +0200)
Closes #2713

wcfsetup/install/files/js/WCF.js

index f620d4e22389af1f0415b0e93c8e9a1356b8b04f..00459c5a60c1749dd2a8ea6e38964a79a5166683 100755 (executable)
@@ -5606,9 +5606,9 @@ if (COMPILER_TARGET_DEFAULT) {
                                        }
                                        
                                        $trigger.on(WCF_CLICK_EVENT, $.proxy(self._show, self)).data('elementID', $elementID);
-                                       if (this._quickOption) {
+                                       if (self._quickOption) {
                                                // simulate click on target action
-                                               $trigger.disableSelection().data('optionName', $quickOption).dblclick($.proxy(self._click, self));
+                                               $trigger.disableSelection().data('optionName', self._quickOption).dblclick($.proxy(self._click, self));
                                        }
                                        
                                        // store reference