瀏覽代碼

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
-/* 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
 import React from 'react';
3
 import React from 'react';
4
 import { connect } from 'react-redux';
4
 import { connect } from 'react-redux';
5
 
5
 
6
-import { Conference } from '../../conference';
7
-
8
 import { AbstractWelcomePage, mapStateToProps } from './AbstractWelcomePage';
6
 import { AbstractWelcomePage, mapStateToProps } from './AbstractWelcomePage';
9
 
7
 
10
 /**
8
 /**
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
      * Handles 'keydown' event to initiate joining the room when the
130
      * Handles 'keydown' event to initiate joining the room when the
146
      * 'Enter/Return' button is pressed.
131
      * 'Enter/Return' button is pressed.
365
         this._updateRoomname();
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
      * Renders the main part of this WelcomePage.
354
      * Renders the main part of this WelcomePage.
397
      *
355
      *

Loading…
取消
儲存