217 var ui = build_ui(); |
217 var ui = build_ui(); |
218 |
218 |
219 ui.appendTo("body"); |
219 ui.appendTo("body"); |
220 |
220 |
221 $("#support-question-submit").click(on_question_submit); |
221 $("#support-question-submit").click(on_question_submit); |
|
222 $("#support-input").keypress(function (event) { |
|
223 if(event.keyCode == 13) |
|
224 $("#support-send-button").click(); |
|
225 }); |
222 $("#support-offline-submit-button").click(function () |
226 $("#support-offline-submit-button").click(function () |
223 { |
227 { |
224 $("#support-offline-form").hide(); |
228 $("#support-offline-form").hide(); |
225 conn.send($msg({to: support_config.offline_support, type: "normal"}) |
229 conn.send($msg({to: support_config.offline_support, type: "normal"}) |
226 .c("subject").t("Support query from " + question_name).up() |
230 .c("subject").t("Support query from " + question_name).up() |