# HG changeset patch # User Matthew Wild # Date 1268220835 0 # Node ID 6677316d88349719c4b399f9bfe72e3000578621 # Parent 09d33857ca04aa42e04704b614533b1080eab241 Example question submit handler until BOSH backend integrated diff -r 09d33857ca04 -r 6677316d8834 js/supportchat.js --- a/js/supportchat.js Wed Mar 10 11:27:46 2010 +0000 +++ b/js/supportchat.js Wed Mar 10 11:33:55 2010 +0000 @@ -1,6 +1,10 @@ function on_question_submit() { - alert("Submitted!"); + var question_type = $("#support-question-type").val(); + var question_submitter = $("#support-question-name").val(); + var question_text = $("#support-question-text").val(); + + alert(question_name + " submitted a " + question_type + " question:\n " + question_text); } function display_ui()