Browse Source

code cleanup: remove redundant span.nick elements

j8
isymchych 9 years ago
parent
commit
c294f592c8
4 changed files with 1 additions and 21 deletions
  1. 0
    10
      css/videolayout_default.css
  2. 0
    2
      index.html
  3. 1
    5
      modules/UI/UI.js
  4. 0
    4
      modules/UI/videolayout/RemoteVideo.js

+ 0
- 10
css/videolayout_default.css View File

@@ -158,16 +158,6 @@
158 158
     text-align: center;
159 159
 }
160 160
 
161
-#remoteVideos .nick {
162
-    display: none; /* enable when you want nicks to be shown */
163
-    position: absolute;
164
-    left: 0px;
165
-    bottom: -20px;
166
-    z-index: 0;
167
-    width: 100%;
168
-    font-size: 10pt;
169
-}
170
-
171 161
 .videocontainer>span.displayname,
172 162
 .videocontainer>input.displayname {
173 163
     display: none;

+ 0
- 2
index.html View File

@@ -157,7 +157,6 @@
157 157
 
158 158
             <div id="remoteVideos">
159 159
                 <span id="localVideoContainer" class="videocontainer">
160
-                    <span id="localNick" class="nick"></span>
161 160
                     <span id="localVideoWrapper">
162 161
                         <!--<video id="localVideo" autoplay muted></video> - is now per stream generated -->
163 162
                     </span>
@@ -199,7 +198,6 @@
199 198
                 </form>
200 199
             </div>
201 200
 
202
-            <!--div><i class="fa fa-comments">&nbsp;</i><span class='nick'></span>:&nbsp;<span class='chattext'></span></div-->
203 201
             <div id="chatconversation"></div>
204 202
             <audio id="chatNotification" src="sounds/incomingMessage.wav" preload="auto"></audio>
205 203
                 <textarea id="usermsg" data-i18n="[placeholder]chat.messagebox" autofocus></textarea>

+ 1
- 5
modules/UI/UI.js View File

@@ -225,10 +225,6 @@ UI.changeDisplayName = function (id, displayName) {
225 225
 UI.initConference = function () {
226 226
     let id = APP.conference.localId;
227 227
     Toolbar.updateRoomUrl(window.location.href);
228
-    let meHTML = APP.translation.generateTranslationHTML("me");
229
-
230
-    let email = Settings.getEmail();
231
-    $("#localNick").html(email || `${id} (${meHTML})`);
232 228
 
233 229
     // Add myself to the contact list.
234 230
     ContactList.addContact(id);
@@ -243,7 +239,7 @@ UI.initConference = function () {
243 239
     }
244 240
 
245 241
     // Make sure we configure our avatar id, before creating avatar for us
246
-    UI.setUserAvatar(id, email);
242
+    UI.setUserAvatar(id, Settings.getEmail());
247 243
 
248 244
     Toolbar.checkAutoEnableDesktopSharing();
249 245
     if(!interfaceConfig.filmStripOnly) {

+ 0
- 4
modules/UI/videolayout/RemoteVideo.js View File

@@ -15,10 +15,6 @@ function RemoteVideo(id, VideoLayout, emitter) {
15 15
     this.addRemoteVideoContainer();
16 16
     this.connectionIndicator = new ConnectionIndicator(this, id);
17 17
     this.setDisplayName();
18
-    var nickfield = document.createElement('span');
19
-    nickfield.className = "nick";
20
-    nickfield.appendChild(document.createTextNode(id));
21
-    this.container.appendChild(nickfield);
22 18
     this.bindHoverHandler();
23 19
     this.flipX = false;
24 20
     this.isLocal = false;

Loading…
Cancel
Save