Commit Graph

27 Commits

Author SHA1 Message Date
JC Brand
28d71fba34 Refactor roster functionality with backbone. (Not done yet). 2012-07-15 13:10:11 +02:00
JC Brand
588ff50aa5 Add status notifications to any open chatboxes. 2012-07-14 08:05:25 +02:00
JC Brand
b304a54afe Show the number of online users. 2012-07-14 06:46:46 +02:00
JC Brand
a20ea9d4e0 Moved insertClientStoredMessages to the chatbox backbone view. 2012-07-12 23:57:04 +02:00
JC Brand
54667672ce Message sending and receiving is now handled with backbone views/models 2012-07-11 23:47:49 +02:00
JC Brand
5eb0f1c7cf Rewrote the status dropdown with backbone and store user status via store.js 2012-07-11 18:26:53 +02:00
JC Brand
f9bb840dec Remove unused code. 2012-07-11 16:20:55 +02:00
JC Brand
2669a179f7 Add a controlbox model and view and fixed ordering of chatboxes. 2012-07-11 16:16:17 +02:00
JC Brand
56d6c39da2 Updated the chatbox views to position and order boxes. 2012-07-09 22:22:08 +02:00
JC Brand
5d602caa7e Create models, views and collections for the chat boxes. 2012-07-09 18:47:50 +02:00
JC Brand
385eb834f8 Rewrote more functionality to use backbone.js 2012-07-08 22:18:49 +02:00
JC Brand
d82e72613a Busy rewriting the javascript to use backbone.js 2012-07-08 12:27:13 +02:00
JC Brand
be5a8b3c40 Various js improvements and fixes.
- On page load, roster users are offline by default.
- let addUserToRosterUI accept the user's status.
- set the user remove confirmation dialog's position.
2012-07-06 19:02:24 +02:00
JC Brand
997bcdc5f2 Better roster support (adding/removing of contacts). 2012-07-04 11:28:43 +02:00
JC Brand
8cdc8d303b Add initial functionality for removing chat contacts. 2012-07-03 22:31:52 +02:00
JC Brand
428c51dffb Add initial Roster support. 2012-07-03 13:15:45 +02:00
JC Brand
af5301d2e7 Add a nicer custom select box for choosing one's status 2012-07-01 21:12:51 +02:00
JC Brand
de549fe8bc Use offline messages array as queue, not heap.
Only trigger presence event (for UI) if we don't have any more ClientStorage
instances for bare_jid.
2012-07-01 19:48:18 +02:00
JC Brand
e4a0272ee7 The user is now notified if the chat partner is typing. 2012-07-01 13:12:02 +02:00
JC Brand
8c35e9f525 Send 'active' chatstate when a messages is sent 2012-07-01 12:44:38 +02:00
JC Brand
7221ef8c74 Add xmpp.Storage.ClientStorage to store messages offline 2012-07-01 12:03:43 +02:00
JC Brand
f204be098c The chatbox is now rendered completely in javascript. 2012-06-25 09:28:24 +02:00
JC Brand
de73fb218d Sent the callback directly to sendIQ 2012-06-24 21:03:03 +02:00
JC Brand
ee7ef4ad6e Add code to retrieve the last collection. 2012-06-24 13:16:19 +02:00
JC Brand
0935fd62f1 Add isOwnUser method. Return the number of resources left when removing one. 2012-06-24 12:06:37 +02:00
JC Brand
92a18780ca Override jarnxmpp.Presence.onlineCount to use the ChatPartners storage. 2012-06-24 11:24:10 +02:00
JC Brand
0c6ccf67c8 Add chat.js and chatui.js (split up from collective.xmpp.chat.js). 2012-06-23 14:26:04 +02:00