changed chat online offline messages

This commit is contained in:
Baris Soner Usakli
2013-08-28 22:08:46 -04:00
parent a69140faa9
commit cc1f668308
6 changed files with 99 additions and 104 deletions

View File

@@ -288,9 +288,13 @@
return;
require(['chat'], function(chat) {
var chatModal = chat.createModalIfDoesntExist(username, touid);
chatModal.modal();
chat.bringModalToTop(chatModal); // I don't think this is necessary
var chatModal;
if(!chat.modalExists(touid)) {
chatModal = chat.createModal(username, touid);
} else {
chatModal = chat.getModal(touid);
}
chat.load(chatModal.attr('UUID'));
});
});