Renamed like buttons to work around false-positive ad blockers
authorAlexander Ebert <ebert@woltlab.com>
Fri, 27 Jun 2014 19:01:36 +0000 (21:01 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 27 Jun 2014 19:01:36 +0000 (21:01 +0200)
wcfsetup/install/files/js/WCF.Like.js

index 122bc342c96ba11f91bc41574bf42f3b980bb21d..d602d97ddbbdc8d0726135cd59517a40a07bc443 100644 (file)
@@ -202,8 +202,8 @@ WCF.Like = Class.extend({
         * @param       integer         containerID
         */
        _createWidget: function(containerID) {
-               var $likeButton = $('<li class="likeButton"><a title="'+WCF.Language.get('wcf.like.button.like')+'" class="jsTooltip"><span class="icon icon16 icon-thumbs-up-alt" /> <span class="invisible">'+WCF.Language.get('wcf.like.button.like')+'</span></a></li>');
-               var $dislikeButton = $('<li class="dislikeButton"><a title="'+WCF.Language.get('wcf.like.button.dislike')+'" class="jsTooltip"><span class="icon icon16 icon-thumbs-down-alt" /> <span class="invisible">'+WCF.Language.get('wcf.like.button.dislike')+'</span></a></li>');
+               var $likeButton = $('<li class="wcfLikeButton"><a title="'+WCF.Language.get('wcf.like.button.like')+'" class="jsTooltip"><span class="icon icon16 icon-thumbs-up-alt" /> <span class="invisible">'+WCF.Language.get('wcf.like.button.like')+'</span></a></li>');
+               var $dislikeButton = $('<li class="wcfDislikeButton"><a title="'+WCF.Language.get('wcf.like.button.dislike')+'" class="jsTooltip"><span class="icon icon16 icon-thumbs-down-alt" /> <span class="invisible">'+WCF.Language.get('wcf.like.button.dislike')+'</span></a></li>');
                if (!this._enableDislikes) $dislikeButton.hide();
                
                if (!this._allowForOwnContent && (WCF.User.userID == this._containers[containerID].data('userID'))) {