* @param integer containerID
*/
_createWidget: function(containerID) {
- 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>');
+ var $likeButton = $('<li class="wcfLikeButton"><a href="#" 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 href="#" 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'))) {
* @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.");
* @param object event
*/
_click: function(event) {
+ event.preventDefault();
this._objectID = $(event.currentTarget).data('objectID');
this._proxy.setOption('data', {