From: Marcel Werk Date: Fri, 23 Sep 2016 17:07:18 +0000 (+0200) Subject: Fixed update of tooltip texts X-Git-Tag: 3.0.0_Beta_1~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6783e56b2e1d5d5b42ec22d2437572ed1ed3c83e;p=GitHub%2FWoltLab%2FWCF.git Fixed update of tooltip texts --- diff --git a/wcfsetup/install/files/acp/js/WCF.ACP.js b/wcfsetup/install/files/acp/js/WCF.ACP.js index 450c5ede17..91b7c1f712 100644 --- a/wcfsetup/install/files/acp/js/WCF.ACP.js +++ b/wcfsetup/install/files/acp/js/WCF.ACP.js @@ -2016,10 +2016,10 @@ WCF.ACP.User.BanHandler = { var $button = $(button); if (WCF.inArray($button.data('objectID'), data.objectIDs)) { if (data.actionName == 'unban') { - $button.data('banned', false).data('tooltip', $button.data('banMessage')).removeClass('fa-lock').addClass('fa-unlock'); + $button.data('banned', false).attr('data-tooltip', $button.data('banMessage')).removeClass('fa-lock').addClass('fa-unlock'); } else { - $button.data('banned', true).data('tooltip', $button.data('unbanMessage')).removeClass('fa-unlock').addClass('fa-lock'); + $button.data('banned', true).attr('data-tooltip', $button.data('unbanMessage')).removeClass('fa-unlock').addClass('fa-lock'); } } }); @@ -2177,10 +2177,10 @@ WCF.ACP.User.EnableHandler = { var $button = $(button); if (WCF.inArray($button.data('objectID'), data.objectIDs)) { if (data.actionName == 'disable') { - $button.data('enabled', false).data('tooltip', $button.data('enableMessage')).removeClass('fa-check-square-o').addClass('fa-square-o'); + $button.data('enabled', false).attr('data-tooltip', $button.data('enableMessage')).removeClass('fa-check-square-o').addClass('fa-square-o'); } else { - $button.data('enabled', true).data('tooltip', $button.data('disableMessage')).removeClass('fa-square-o').addClass('fa-check-square-o'); + $button.data('enabled', true).attr('data-tooltip', $button.data('disableMessage')).removeClass('fa-square-o').addClass('fa-check-square-o'); } } }); diff --git a/wcfsetup/install/files/js/WCF.Like.js b/wcfsetup/install/files/js/WCF.Like.js index 612424a6a1..da502615e7 100644 --- a/wcfsetup/install/files/js/WCF.Like.js +++ b/wcfsetup/install/files/js/WCF.Like.js @@ -377,7 +377,7 @@ WCF.Like = Class.extend({ // update tooltip var $likes = this._containerData[containerID].likes; var $dislikes = this._containerData[containerID].dislikes; - $badge.data('tooltip', WCF.Language.get('wcf.like.tooltip', { likes: $likes, dislikes: $dislikes })); + $badge.attr('data-tooltip', WCF.Language.get('wcf.like.tooltip', { likes: $likes, dislikes: $dislikes })); } }, diff --git a/wcfsetup/install/files/js/WCF.User.js b/wcfsetup/install/files/js/WCF.User.js index 18a04a2832..d0c348328e 100644 --- a/wcfsetup/install/files/js/WCF.User.js +++ b/wcfsetup/install/files/js/WCF.User.js @@ -2116,10 +2116,10 @@ WCF.User.Action.Follow = Class.extend({ // toogle icon title if (data.returnValues.following) { - button.data('tooltip', WCF.Language.get('wcf.user.button.unfollow')).children('.icon').removeClass('fa-plus').addClass('fa-minus'); + button.attr('data-tooltip', WCF.Language.get('wcf.user.button.unfollow')).children('.icon').removeClass('fa-plus').addClass('fa-minus'); } else { - button.data('tooltip', WCF.Language.get('wcf.user.button.follow')).children('.icon').removeClass('fa-minus').addClass('fa-plus'); + button.attr('data-tooltip', WCF.Language.get('wcf.user.button.follow')).children('.icon').removeClass('fa-minus').addClass('fa-plus'); } button.data('following', data.returnValues.following); @@ -2223,10 +2223,10 @@ WCF.User.Action.Ignore = Class.extend({ // toogle icon title if (data.returnValues.isIgnoredUser) { - button.data('tooltip', WCF.Language.get('wcf.user.button.unignore')).children('.icon').removeClass('fa-ban').addClass('fa-circle-o'); + button.attr('data-tooltip', WCF.Language.get('wcf.user.button.unignore')).children('.icon').removeClass('fa-ban').addClass('fa-circle-o'); } else { - button.data('tooltip', WCF.Language.get('wcf.user.button.ignore')).children('.icon').removeClass('fa-circle-o').addClass('fa-ban'); + button.attr('data-tooltip', WCF.Language.get('wcf.user.button.ignore')).children('.icon').removeClass('fa-circle-o').addClass('fa-ban'); } button.data('ignored', data.returnValues.isIgnoredUser);