Update texts in mobile user button dropdown
authorMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 07:34:34 +0000 (09:34 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 29 Sep 2016 07:34:34 +0000 (09:34 +0200)
wcfsetup/install/files/js/WCF.User.js

index 1c53874fcdf8f26a5ae900c12da57108e62142f8..986ab3ee0f58ea5f86773a57e36e2043401a745c 100644 (file)
@@ -2321,9 +2321,11 @@ 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('icon-plus').addClass('icon-minus');
+                                       button.children('.invisible').text(WCF.Language.get('wcf.user.button.unfollow'));
                                }
                                else {
                                        button.data('tooltip', WCF.Language.get('wcf.user.button.follow')).children('.icon').removeClass('icon-minus').addClass('icon-plus');
+                                       button.children('.invisible').text(WCF.Language.get('wcf.user.button.follow'));
                                }
                                
                                button.data('following', data.returnValues.following);
@@ -2434,9 +2436,11 @@ 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('icon-ban-circle').addClass('icon-circle-blank');
+                                       button.children('.invisible').text(WCF.Language.get('wcf.user.button.unignore'));
                                }
                                else {
                                        button.data('tooltip', WCF.Language.get('wcf.user.button.ignore')).children('.icon').removeClass('icon-circle-blank').addClass('icon-ban-circle');
+                                       button.children('.invisible').text(WCF.Language.get('wcf.user.button.ignore'));
                                }
                                
                                button.data('ignored', data.returnValues.isIgnoredUser);