17 else if(status != Strophe.Status.CONNECTED) |
17 else if(status != Strophe.Status.CONNECTED) |
18 set_busy_status(true); |
18 set_busy_status(true); |
19 |
19 |
20 if(err) |
20 if(err) |
21 alert(err); //FIXME: Handle gracefully |
21 alert(err); //FIXME: Handle gracefully |
22 |
|
23 if(status == Strophe.Status.CONNECTED) |
|
24 { |
|
25 //FIXME: Join MUC |
|
26 alert("Connected!"); |
|
27 } |
|
28 } |
22 } |
29 |
23 |
30 /* Initiate the connection to the XMPP server */ |
24 /* Initiate the connection to the XMPP server */ |
31 function start_connection() |
25 function start_connection() |
32 { |
26 { |