Explorar el Código

Fixes welcome page input Enter button action.

master
hristoterezov hace 10 años
padre
commit
f65640882f
Se han modificado 2 ficheros con 7 adiciones y 4 borrados
  1. 6
    3
      app.js
  2. 1
    1
      index.html

+ 6
- 3
app.js Ver fichero

@@ -1034,18 +1034,21 @@ $(document).ready(function () {
1034 1034
         $("#videoconference_page").hide();
1035 1035
         $("#domain_name").text(window.location.host + "/");
1036 1036
         $("span[name='appName']").text(brand.appName);
1037
-        $("#enter_room_button").click(function()
1037
+        function enter_room()
1038 1038
         {
1039 1039
             var val = $("#enter_room_field").val();
1040 1040
             if(!val)
1041 1041
                 val = $("#enter_room_field").attr("room_name");
1042 1042
             window.location.pathname = "/" + val;
1043
+        }
1044
+        $("#enter_room_button").click(function()
1045
+        {
1046
+            enter_room();
1043 1047
         });
1044 1048
 
1045 1049
         $("#enter_room_field").keydown(function (event) {
1046 1050
             if (event.keyCode === 13) {
1047
-                var val = Util.escapeHtml(this.value);
1048
-                window.location.pathname = "/" + val;
1051
+                enter_room();
1049 1052
             }
1050 1053
         });
1051 1054
 

+ 1
- 1
index.html Ver fichero

@@ -78,7 +78,7 @@
78 78
                     <div id="enter_room_form" >
79 79
                         <div id="domain_name"></div>
80 80
                         <div id="enter_room">
81
-                            <input id="enter_room_field" type="text" placeholder="Enter room name" />
81
+                            <input id="enter_room_field" type="text" autofocus placeholder="Enter room name" />
82 82
                             <div class="icon-reload" id="reload_roomname"></div>
83 83
                             <input id="enter_room_button" type="button" value="GO" />
84 84
 

Loading…
Cancelar
Guardar