Explorar el Código

fix FormController bug

wangweimin hace 5 años
padre
commit
12ba174e8c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pywebio/html/js/form.js

+ 1 - 1
pywebio/html/js/form.js

@@ -406,7 +406,7 @@
             $.each(that.name2input_controllers, (name, ctrl) => {
                 data[name] = ctrl.get_value();
             });
-            ws.send(JSON.stringify({
+            that.ws_client.send(JSON.stringify({
                 event: "from_submit",
                 coro_id: that.coro_id,
                 data: data