Explorar o código

fix FormController bug

wangweimin %!s(int64=5) %!d(string=hai) anos
pai
achega
12ba174e8c
Modificáronse 1 ficheiros con 1 adicións e 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