Selaa lähdekoodia

Fixes jshint warnings.

j8
Boris Grozev 10 vuotta sitten
vanhempi
commit
fdf73a9b4e
3 muutettua tiedostoa jossa 9 lisäystä ja 4 poistoa
  1. 4
    2
      interface_config.js
  2. 2
    1
      modules/UI/toolbars/ToolbarToggler.js
  3. 3
    1
      modules/UI/util/UIUtil.js

+ 4
- 2
interface_config.js Näytä tiedosto

16
     APP_NAME: "Jitsi Meet",
16
     APP_NAME: "Jitsi Meet",
17
     INVITATION_POWERED_BY: true,
17
     INVITATION_POWERED_BY: true,
18
     ACTIVE_SPEAKER_AVATAR_SIZE: 100,
18
     ACTIVE_SPEAKER_AVATAR_SIZE: 100,
19
-    TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop', 'recording', 'security', 'invite',
20
-        'chat', 'prezi', 'etherpad', 'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip', 'contacts'],
19
+    TOOLBAR_BUTTONS: ['authentication', 'microphone', 'camera', 'desktop',
20
+        'recording', 'security', 'invite', 'chat', 'prezi', 'etherpad',
21
+        'fullscreen', 'sip', 'dialpad', 'settings', 'hangup', 'filmstrip',
22
+        'contacts'],
21
     /**
23
     /**
22
      * Whether to only show the filmstrip (and hide the toolbar).
24
      * Whether to only show the filmstrip (and hide the toolbar).
23
      */
25
      */

+ 2
- 1
modules/UI/toolbars/ToolbarToggler.js Näytä tiedosto

6
     UIUtil = require("../util/UIUtil");
6
     UIUtil = require("../util/UIUtil");
7
 
7
 
8
 function showDesktopSharingButton() {
8
 function showDesktopSharingButton() {
9
-    if (APP.desktopsharing.isDesktopSharingEnabled() && UIUtil.isButtonEnabled('desktop')) {
9
+    if (APP.desktopsharing.isDesktopSharingEnabled() &&
10
+        UIUtil.isButtonEnabled('desktop')) {
10
         $('#toolbar_button_desktopsharing').css({display: "inline-block"});
11
         $('#toolbar_button_desktopsharing').css({display: "inline-block"});
11
     } else {
12
     } else {
12
         $('#toolbar_button_desktopsharing').css({display: "none"});
13
         $('#toolbar_button_desktopsharing').css({display: "none"});

+ 3
- 1
modules/UI/util/UIUtil.js Näytä tiedosto

106
 
106
 
107
     hideDisabledButtons: function (mappings) {
107
     hideDisabledButtons: function (mappings) {
108
         var selector = Object.keys(mappings)
108
         var selector = Object.keys(mappings)
109
-          .map(function (buttonName) { return UIUtil.isButtonEnabled(buttonName) ? null : mappings[buttonName]; })
109
+          .map(function (buttonName) {
110
+                return UIUtil.isButtonEnabled(buttonName)
111
+                    ? null : mappings[buttonName]; })
110
           .filter(function (item) { return item; })
112
           .filter(function (item) { return item; })
111
           .join(',');
113
           .join(',');
112
         $(selector).hide();
114
         $(selector).hide();

Loading…
Peruuta
Tallenna