Pārlūkot izejas kodu

ref(ConnectionIndicator.js) pass icon class as an argument

master
paweldomas 8 gadus atpakaļ
vecāks
revīzija
cf931f8a9f
1 mainītis faili ar 4 papildinājumiem un 4 dzēšanām
  1. 4
    4
      modules/UI/videolayout/ConnectionIndicator.js

+ 4
- 4
modules/UI/videolayout/ConnectionIndicator.js Parādīt failu

@@ -245,13 +245,13 @@ ConnectionIndicator.prototype.showMore = function () {
245 245
 };
246 246
 
247 247
 
248
-function createIcon(classes) {
248
+function createIcon(classes, iconClass) {
249 249
     var icon = document.createElement("span");
250 250
     for(var i in classes) {
251 251
         icon.classList.add(classes[i]);
252 252
     }
253 253
     icon.appendChild(
254
-        document.createElement("i")).classList.add("icon-connection");
254
+        document.createElement("i")).classList.add(iconClass);
255 255
     return icon;
256 256
 }
257 257
 
@@ -282,9 +282,9 @@ ConnectionIndicator.prototype.create = function () {
282 282
     }.bind(this);
283 283
 
284 284
     this.emptyIcon = this.connectionIndicatorContainer.appendChild(
285
-        createIcon(["connection", "connection_empty"]));
285
+        createIcon(["connection", "connection_empty"], "icon-connection"));
286 286
     this.fullIcon = this.connectionIndicatorContainer.appendChild(
287
-        createIcon(["connection", "connection_full"]));
287
+        createIcon(["connection", "connection_full"], "icon-connection"));
288 288
 };
289 289
 
290 290
 /**

Notiek ielāde…
Atcelt
Saglabāt