Commit Graph

6718 Commits

Author SHA1 Message Date
JC Brand
8b0670d388 Update the available rooms list when users join or leave. 2012-07-22 16:44:01 +02:00
JC Brand
2fb4a88556 Show available chatrooms. 2012-07-22 12:25:19 +02:00
JC Brand
3c39652ae0 Group chattting now works :) 2012-07-22 00:06:37 +02:00
JC Brand
d278f803e3 Rudimentary chatroom roster support 2012-07-21 19:09:30 +02:00
JC Brand
d8c68449b9 Add event handler for closing chatrooms. Some refactoring. 2012-07-21 18:39:32 +02:00
JC Brand
b088f997e8 Add rendering support for chat rooms. Also reorderChats is no longer needed. 2012-07-21 17:58:07 +02:00
JC Brand
258a19ffd1 Initial commit 2012-07-21 02:14:22 -07:00
JC Brand
4b6f2dfb4a Add separate view classes for the users/chatrooms/settings panels 2012-07-19 22:37:00 +02:00
JC Brand
5f440dc739 Remove chatui.js, not being used anymore. 2012-07-19 19:50:10 +02:00
JC Brand
944cca81e3 Fixed events for RosterItemView. Subscribing/unsubscribing now works. 2012-07-15 22:01:08 +02:00
JC Brand
f333968dd9 Break the roster up in to current, pending and requesting contacts. 2012-07-15 21:03:34 +02:00
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
b362284197 Remove jquery.hook.js, no longer used. 2012-07-03 13:15:23 +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
4b94968fd8 Better status handling. We shouldn't access ClientStorage from UI side 2012-07-01 19:49:58 +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
2ea20b313a Add close button for the control box. 2012-07-01 14:41:38 +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
448eb73aea Refactored keyPressed to send 'composing' chatstate 2012-07-01 12:45:04 +02:00
JC Brand
8c35e9f525 Send 'active' chatstate when a messages is sent 2012-07-01 12:44:38 +02:00
JC Brand
38828d22f5 Add store.js for client storage. 2012-07-01 12:05:37 +02:00
JC Brand
726e02095d Refactored to use client storage of messages. 2012-07-01 12:04:31 +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
ef5c5b5670 Make sure that bare jids are used for chatboxes. 2012-06-25 07:55:43 +02:00
JC Brand
eb8fb67bcb Get the last messages and append them (still not 100% bugfree) 2012-06-24 21:03:25 +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
7ff02b2816 Bugfix, uninitialized variable. 2012-06-24 12:16:01 +02:00
JC Brand
5fcd754ad4 Better status management. Only show a user as offline if they have zero resources left. 2012-06-24 12:07:07 +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
440900626d Use getUserInfo to get the user's fullname. 2012-06-24 11:33:34 +02:00
JC Brand
3e964ccd70 Don't make a @@xmpp-userDetails ajax call. We can do it all client side. 2012-06-24 11:24:43 +02:00
JC Brand
92a18780ca Override jarnxmpp.Presence.onlineCount to use the ChatPartners storage. 2012-06-24 11:24:10 +02:00
JC Brand
e10256a70e Update js registry and remove old js file. 2012-06-23 14:26:53 +02:00