Selaa lähdekoodia

Merge pull request #915 from jitsi/update-tooltip-from-profile

Update tooltip from profile
j8
yanas 9 vuotta sitten
vanhempi
commit
f145d98a12
2 muutettua tiedostoa jossa 11 lisäystä ja 0 poistoa
  1. 2
    0
      modules/UI/toolbars/Toolbar.js
  2. 9
    0
      modules/UI/util/UIUtil.js

+ 2
- 0
modules/UI/toolbars/Toolbar.js Näytä tiedosto

407
 
407
 
408
         if(!APP.tokenData.isGuest) {
408
         if(!APP.tokenData.isGuest) {
409
             $("#toolbar_button_profile").addClass("unclickable");
409
             $("#toolbar_button_profile").addClass("unclickable");
410
+            UIUtil.removeTooltip(
411
+                document.getElementById('toolbar_button_profile'));
410
         }
412
         }
411
     },
413
     },
412
     /**
414
     /**

+ 9
- 0
modules/UI/util/UIUtil.js Näytä tiedosto

113
         });
113
         });
114
     },
114
     },
115
 
115
 
116
+    /**
117
+     * Removes the tooltip to the given element.
118
+     *
119
+     * @param element the element to remove the tooltip from
120
+     */
121
+    removeTooltip: function (element) {
122
+        AJS.$(element).tooltip('destroy');
123
+    },
124
+
116
     /**
125
     /**
117
      * Internal util function for generating tooltip title.
126
      * Internal util function for generating tooltip title.
118
      *
127
      *

Loading…
Peruuta
Tallenna