Skip to content

Commit

Permalink
Disconnect xmpp after logout. Version number changed to 0.3.3, ready …
Browse files Browse the repository at this point in the history
…to go!
  • Loading branch information
mrroach9 committed Jan 26, 2015
1 parent 1f06477 commit 81824b8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions js/bbs/bbs_UI.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ function UI_login_finished(result) {
function UI_logout() {
removeSessionCookie();
Accounts9.removeSessionCookie();
xmpp_disconnect();
bbs_topmost_stack.splice(0);
$('#unlogged-navbar').show();
$('#unlogged-panel').show();
Expand Down
3 changes: 3 additions & 0 deletions js/bbs/bbs_xmpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ function xmpp_connect() {
onPresence: xmpp_presence,
onError: xmpp_error
});
}

function xmpp_disconnect() {
$.xmpp.disconnect(null);
}

function xmpp_connected() {
Expand Down
6 changes: 3 additions & 3 deletions js/bbs/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ var bbs_string = {
favboard_name : '收藏夹',
allboard_name : '所有版面',
mailbox_name : '站内信',
title : '9# BBS - Rowell v0.3.2',
version : '0.3.2',
send_source : '[Sent from Rowell v0.3.2]',
title : '9# BBS - Rowell v0.3.3',
version : '0.3.3',
send_source : '[Sent from Rowell v0.3.3]',
unimpltd_title : '矮油',
unimpltd_text : '此功能尚未实现,我们将在后续版本中添加,敬请谅解。',
entry_folder : '[目录]',
Expand Down

0 comments on commit 81824b8

Please sign in to comment.