From: Marcel Werk Date: Fri, 29 Aug 2014 19:49:46 +0000 (+0200) Subject: Improved keyboard-based navigation X-Git-Tag: 2.1.0_Alpha_1~376 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f55824ec70cc403fe356e79d735b0b0f20fff5b6;p=GitHub%2FWoltLab%2FWCF.git Improved keyboard-based navigation --- diff --git a/wcfsetup/install/files/js/WCF.Like.js b/wcfsetup/install/files/js/WCF.Like.js index d8d9d7ed69..7d8b6a7e37 100644 --- a/wcfsetup/install/files/js/WCF.Like.js +++ b/wcfsetup/install/files/js/WCF.Like.js @@ -202,8 +202,8 @@ WCF.Like = Class.extend({ * @param integer containerID */ _createWidget: function(containerID) { - var $likeButton = $('
  • '); - var $dislikeButton = $('
  • '); + var $likeButton = $('
  • '); + var $dislikeButton = $('
  • '); if (!this._enableDislikes) $dislikeButton.hide(); if (!this._allowForOwnContent && (WCF.User.userID == this._containers[containerID].data('userID'))) { @@ -260,6 +260,7 @@ WCF.Like = Class.extend({ * @param object event */ _click: function(event) { + event.preventDefault(); var $button = $(event.currentTarget); if ($button === null) { console.debug("[WCF.Like] Unable to find target button, aborting."); diff --git a/wcfsetup/install/files/js/WCF.Moderation.js b/wcfsetup/install/files/js/WCF.Moderation.js index a7e4435507..a9aa06a40e 100644 --- a/wcfsetup/install/files/js/WCF.Moderation.js +++ b/wcfsetup/install/files/js/WCF.Moderation.js @@ -387,6 +387,7 @@ WCF.Moderation.Report.Content = Class.extend({ * @param object event */ _click: function(event) { + event.preventDefault(); this._objectID = $(event.currentTarget).data('objectID'); this._proxy.setOption('data', { diff --git a/wcfsetup/install/files/js/WCF.js b/wcfsetup/install/files/js/WCF.js index 034f699bd9..424c472141 100755 --- a/wcfsetup/install/files/js/WCF.js +++ b/wcfsetup/install/files/js/WCF.js @@ -8110,6 +8110,7 @@ WCF.InlineEditor = Class.extend({ * @param object event */ _show: function(event) { + event.preventDefault(); var $elementID = $(event.currentTarget).data('elementID'); // build dropdown