main.py
CHANGED
|
@@ -32,7 +32,7 @@ function load()
|
|
| 32 |
$( "#chat_form" ).on( "submit", function( event ) {
|
| 33 |
alert( "Handler for `submit` called." );
|
| 34 |
//event.preventDefault();
|
| 35 |
-
setTimeout(handle_post,
|
| 36 |
});
|
| 37 |
|
| 38 |
|
|
@@ -46,7 +46,7 @@ function load()
|
|
| 46 |
|
| 47 |
function handle_post() {
|
| 48 |
messages_input = $("#chat_form :input[name='messages']");
|
| 49 |
-
alert(messages_input);
|
| 50 |
console.log(messages_input);
|
| 51 |
}
|
| 52 |
|
|
|
|
| 32 |
$( "#chat_form" ).on( "submit", function( event ) {
|
| 33 |
alert( "Handler for `submit` called." );
|
| 34 |
//event.preventDefault();
|
| 35 |
+
setTimeout(handle_post, 10000);
|
| 36 |
});
|
| 37 |
|
| 38 |
|
|
|
|
| 46 |
|
| 47 |
function handle_post() {
|
| 48 |
messages_input = $("#chat_form :input[name='messages']");
|
| 49 |
+
alert(messages_input.val());
|
| 50 |
console.log(messages_input);
|
| 51 |
}
|
| 52 |
|