Преглед на файлове

editions after rebase

master
Ilya Daynatovich преди 8 години
родител
ревизия
58b5e1748f
променени са 2 файла, в които са добавени 0 реда и са изтрити 72 реда
  1. 0
    30
      modules/UI/welcome_page/WelcomePage.js
  2. 0
    42
      react/features/welcome/components/WelcomePage.web.js

+ 0
- 30
modules/UI/welcome_page/WelcomePage.js Целия файл

@@ -1,30 +0,0 @@
1
-/* global $ */
2
-
3
-function enterRoom() {
4
-    const $enterRoomField = $("#enter_room_field");
5
-
6
-    var val = $enterRoomField.val();
7
-    if(!val) {
8
-        val = $enterRoomField.data("room-name");
9
-    }
10
-    if (val) {
11
-        window.location.pathname = "/" + val;
12
-    }
13
-}
14
-
15
-function setupWelcomePage() {
16
-    // XXX: We left only going to conference page here because transitions via
17
-    // React Router isn't implemented yet.
18
-
19
-    $("#enter_room_button").click(function() {
20
-        enterRoom();
21
-    });
22
-
23
-    $("#enter_room_field").keydown(function (event) {
24
-        if (event.keyCode === 13 /* enter */) {
25
-            enterRoom();
26
-        }
27
-    });
28
-}
29
-
30
-module.exports = setupWelcomePage;

+ 0
- 42
react/features/welcome/components/WelcomePage.web.js Целия файл

@@ -3,8 +3,6 @@
3 3
 import React from 'react';
4 4
 import { connect } from 'react-redux';
5 5
 
6
-import { Conference } from '../../conference';
7
-
8 6
 import { AbstractWelcomePage, mapStateToProps } from './AbstractWelcomePage';
9 7
 
10 8
 /**
@@ -128,19 +126,6 @@ class WelcomePage extends AbstractWelcomePage {
128 126
         });
129 127
     }
130 128
 
131
-    /**
132
-     * Overrides the super in order to prevent the dispatching of the Redux
133
-     * action SET_ROOM.
134
-     *
135
-     * @override
136
-     * @protected
137
-     * @returns {null}
138
-     */
139
-    _onJoin() {
140
-        // Don't call the super implementation and thus prevent the dispatching
141
-        // of the Redux action SET_ROOM.
142
-    }
143
-
144 129
     /**
145 130
      * Handles 'keydown' event to initiate joining the room when the
146 131
      * 'Enter/Return' button is pressed.
@@ -365,33 +350,6 @@ class WelcomePage extends AbstractWelcomePage {
365 350
         this._updateRoomname();
366 351
     }
367 352
 
368
-    /**
369
-    * Event handler for changing room name input from web.
370
-    *
371
-    * @inheritdoc
372
-    * @override
373
-    * @protected
374
-    */
375
-    _onRoomChange() {
376
-        super._onRoomChange(this.roomNameInput.value);
377
-    }
378
-
379
-    /**
380
-    * Handles 'keydown' event and initiate joining the room if 'return' button
381
-    * was pressed.
382
-    *
383
-    * @param {Event} event - Key down event object.
384
-    * @returns {void}
385
-    * @private
386
-    */
387
-    _onKeyDown(event) {
388
-        const RETURN_BUTTON_CODE = 13;
389
-
390
-        if (event.keyCode === RETURN_BUTTON_CODE) {
391
-            this._onJoin();
392
-        }
393
-    }
394
-
395 353
     /**
396 354
      * Renders the main part of this WelcomePage.
397 355
      *

Loading…
Отказ
Запис