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