Fixed like widget issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 8 Oct 2013 13:18:50 +0000 (15:18 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 8 Oct 2013 13:18:50 +0000 (15:18 +0200)
wcfsetup/install/files/js/WCF.Like.js

index 00daf46dfb28837e11c608f0ac166a2a1d43af05..ce1302b856967be2972751a4cc23295ec26b82f4 100644 (file)
@@ -213,8 +213,8 @@ WCF.Like = Class.extend({
                if (!this._enableDislikes) $dislikeButton.hide();
                
                if (!this._allowForOwnContent && (WCF.User.userID == this._containers[containerID].data('userID'))) {
-                       $likeButton.hide();
-                       $dislikeButton.hide();
+                       $likeButton = $('');
+                       $dislikeButton = $('');
                }
                
                var $badge = $('<a class="badge jsTooltip likesBadge" />').data('containerID', containerID).click($.proxy(this._showLikeDetails, this));