diff -r 010783d24970 -r 536e0a618d4a src/js/supportchat.js --- a/src/js/supportchat.js Fri Apr 02 01:21:30 2010 +0100 +++ b/src/js/supportchat.js Fri Apr 02 02:06:16 2010 +0100 @@ -9,7 +9,8 @@ "Technical": "technical@support.localhost" }, send_invites: true, - offline_support: "support@localhost" + offline_support: "support@localhost", + alternative_url: "http://www.google.co.uk/" }; /*** XMPP handling */ @@ -26,7 +27,7 @@ function handle_connection_status(status, err) { if(err) - alert("Connection error: " + err); //FIXME: Handle gracefully + set_ui_state("error"); } /* Initiate the connection to the XMPP server */ @@ -40,7 +41,6 @@ } catch(e) { - alert("Connection error: " + e); //FIXME ret = false; } return ret; @@ -153,59 +153,66 @@ muc.join(support_config.team_rooms[question_type], our_nick); } else - alert("unhandled error: " + error); //FIXME + set_ui_state("error"); } }); } function build_ui() { - return $(' \ -
Sorry, there are no assistants available \ to answer your question at the moment. \
\ -To receive a reply to your question via \ email, please enter your email address \ below: \
\ - \ - \ + \ + \Thank you. Your question has been submitted \ and will be replied to as soon as an assistant \ becomes available.
\Sorry, there is a problem with the live support \ + service at the moment. Please see our \ + alternative \ + support channels to receive assistance. \ +
\ +