Fixed update of tooltip texts
authorMarcel Werk <burntime@woltlab.com>
Fri, 23 Sep 2016 17:07:18 +0000 (19:07 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 23 Sep 2016 17:07:23 +0000 (19:07 +0200)
wcfsetup/install/files/acp/js/WCF.ACP.js
wcfsetup/install/files/js/WCF.Like.js
wcfsetup/install/files/js/WCF.User.js

index 450c5ede17925422922b113ffb48f74c8b17e9eb..91b7c1f712df75e4cccaa087cddf632a3563b218 100644 (file)
@@ -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');
                                }
                        }
                });
index 612424a6a1de1a91452739058096bf9ccd25b1bd..da502615e7cc69cf064700d0c70eaa84311c325a 100644 (file)
@@ -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 }));
                }
        },
        
index 18a04a2832b9f2013be799f8968e3a726108980d..d0c348328e6d0501e8ecca3b030a6596874ff94e 100644 (file)
@@ -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);