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) { |
222 $("#support-input").keypress(function (event) { |
223 if(event.keyCode == 13) |
223 if(event.keyCode == 13) |
|
224 { |
|
225 event.preventDefault(); |
224 $("#support-send-button").click(); |
226 $("#support-send-button").click(); |
|
227 } |
225 }); |
228 }); |
226 $("#support-offline-submit-button").click(function () |
229 $("#support-offline-submit-button").click(function () |
227 { |
230 { |
228 $("#support-offline-form").hide(); |
231 $("#support-offline-form").hide(); |
229 conn.send($msg({to: support_config.offline_support, type: "normal"}) |
232 conn.send($msg({to: support_config.offline_support, type: "normal"}) |