Преглед изворни кода

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

Update tooltip from profile
j8
yanas пре 8 година
родитељ
комит
f145d98a12
2 измењених фајлова са 11 додато и 0 уклоњено
  1. 2
    0
      modules/UI/toolbars/Toolbar.js
  2. 9
    0
      modules/UI/util/UIUtil.js

+ 2
- 0
modules/UI/toolbars/Toolbar.js Прегледај датотеку

@@ -407,6 +407,8 @@ const Toolbar = {
407 407
 
408 408
         if(!APP.tokenData.isGuest) {
409 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 Прегледај датотеку

@@ -113,6 +113,15 @@ import KeyboardShortcut from '../../keyboardshortcut/keyboardshortcut';
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 126
      * Internal util function for generating tooltip title.
118 127
      *

Loading…
Откажи
Сачувај