Commit Graph

213 Commits

Author SHA1 Message Date
JC Brand
d1618300a3 Make sure fullname is saved to localStorage
Also make sure that logged in user's fullname is fetched from xmppstatus obj.
2013-05-10 10:58:25 +02:00
JC Brand
1d9dda374b Fetch own vcard on startup 2013-05-10 10:00:25 +02:00
JC Brand
93a80e0db6 Add semi-colons 2013-05-10 08:47:25 +02:00
JC Brand
19cf4c753b Pad spinner which replaces login button 2013-05-09 22:38:17 +02:00
JC Brand
472280ae5d Add some padding around the login submit button 2013-05-09 19:01:34 +02:00
JC Brand
97c978bcfc Indicate when chatrooms are password protected 2013-05-09 18:34:15 +02:00
JC Brand
b3ed43c450 Don't fetch rooms on roster or when leaving a room
Inefficient, causes way too much traffic and takes very long
2013-05-09 17:07:52 +02:00
JC Brand
df7f1ccf2c Use feature discovery on chatrooms 2013-05-09 15:39:27 +02:00
JC Brand
07664ed350 Also inform if no rooms were found 2013-05-09 09:22:54 +02:00
JC Brand
5b2af5b03d Add a button to manually fetch rooms from server.
Also show a spinner when logging in (to disable resubmitting login form)
and when refreshing the available chatrooms.
2013-05-09 00:09:24 +02:00
JC Brand
da483d63f3 Optimize showing of chatrooms
- by using documentFragment
2013-05-08 22:31:33 +02:00
witek
6078ab5924 fixed message counter to be windowState aware. 2013-05-08 16:27:47 +02:00
JC Brand
308b4c6bd6 Show error messages in red 2013-05-08 14:25:21 +02:00
JC Brand
4b69a89090 Properly proxy callbacks 2013-05-08 12:16:11 +02:00
JC Brand
c07c0f5633 Communicate status code information to chatroom users.
Also bugfix that showed the wrong time for delayed messages.
2013-04-30 10:01:19 +02:00
JC Brand
dd1d56b9d8 Enable users to specify the XMPP server for chatrooms 2013-04-30 07:36:16 +02:00
JC Brand
7a824ac4f4 Bugfix in topic setting for chatrooms 2013-04-29 23:12:10 +02:00
JC Brand
e389913444 Better service discovery support
Features are saved to localStorage so that service discovery doesn't have to
happen during every request.
2013-04-26 14:30:14 +02:00
JC Brand
62a2e307a5 Add initial service discovery (XEP 30) support.
- Still needs caching and optimisation
2013-04-25 23:53:33 +02:00
JC Brand
b36d2f18e5 Add support for the BOSH bind URL as a setting parameter 2013-04-25 00:21:54 +02:00
JC Brand
27dec86caa Clear connect form fields so that it cannot be resubmitted 2013-04-20 23:57:33 +02:00
JC Brand
d937d32d3b Fix quirks with the add-contact dropdown 2013-04-20 22:55:22 +02:00
JC Brand
6de997681b Fetch the user's vcard when you subscribe to them 2013-04-20 15:27:48 +02:00
JC Brand
cb2dab38fd Fetch the user's vcard when you subscribe to them 2013-04-20 15:21:23 +02:00
JC Brand
98bbb79176 Fixed auth.
It depended on triggering events for which we've removed the handlers
2013-04-20 11:51:01 +02:00
JC Brand
58241cbb74 Make converse.js more modular
- Removed the $(document).ready handler. Instead, converse.initialize must be
  called manually together with settings data.
- As a result the Plone specific event listeners are now also gone.
- Update tests and index.html to deal wit these changes
2013-04-20 11:32:54 +02:00
JC Brand
1cae33b06b Globally rename xmppchat to converse 2013-04-20 10:41:10 +02:00
JC Brand
71f4cdb931 Initial work towards decoupling contact adding
New conf variable in converse.js to indicate how contacts are added (either via
XHR or directly).
2013-04-20 00:38:54 +02:00
JC Brand
a306e1a716 Clear the chatroom input when form was submitted 2013-04-19 22:10:52 +02:00
JC Brand
d394ad7ff2 Update index.html with Demo section 2013-04-19 00:09:04 +02:00
JC Brand
6aed43818c Add XMPP Status Widget tests 2013-04-18 22:13:28 +02:00
JC Brand
4faf7f2a02 Style tweaks
Truncate pending contacts with too long names
Position accept/decline buttons below pending contact's name
2013-04-17 22:43:17 +02:00
JC Brand
7903c03651 Add a hide method and call that instead
Inside this method we can then check if animations are turned on.
2013-04-17 00:08:01 +02:00
JC Brand
a3b92ac321 Call destroy on rejected contact
Rather than calling remove and triggering a custom event
2013-04-15 09:57:01 +02:00
JC Brand
c13bd1e719 Make animations conditional
We don't want them during testing
2013-04-14 03:06:05 +02:00
JC Brand
d66cf7c2a9 Differentiate between initialize and onConnected 2013-04-14 01:17:51 +02:00
JC Brand
a6fd9450a9 Rename init to initialize
Also make sure to hash all localStorage keys
2013-04-14 01:08:24 +02:00
JC Brand
f2ae33d47c Bugfix in show and moved setup code to init method 2013-04-14 00:47:18 +02:00
JC Brand
d2d10f0661 Bugfix.
Controlbox always appears when page loads
2013-04-12 21:56:24 +02:00
JC Brand
ebfd092e49 Bugfix.
Controlbox didn't auto-appear when a new user made a subscription request.
2013-04-12 21:01:04 +02:00
JC Brand
52bbe024cb Bugfix.
Differentiate more clearly between presence type and the show element
2013-04-12 20:29:37 +02:00
JC Brand
c02dba7682 message time bugfix 2013-04-01 23:42:51 +02:00
JC Brand
09c614816c Make the user search form similar to the status dropdown 2013-04-01 20:50:25 +02:00
JC Brand
54554e94ed Fix closing of controlbox without a connection being present 2013-04-01 19:53:39 +02:00
JC Brand
aa09ea58cd Give more detailed feedback when connecting 2013-04-01 19:48:37 +02:00
JC Brand
2b78460e82 Bugfix, don't call create if we don't yet have a connection 2013-03-28 11:38:16 +02:00
JC Brand
9533f4635f Bugfix. Set up the RosterView after the Controlbox
Also, don't save subscription requesting contacts to cache.
2013-03-28 08:48:00 +02:00
JC Brand
6f5ff13055 Don't check the cache in getVCard since we don't call it so often anymore 2013-03-28 07:35:38 +02:00
JC Brand
fe8ed1282c Better handling of user avatar. Don't create canvas el if there's no avatar.
Also, don't fetch vCards in rosterHandler. This could be very expensive for
large rosters, instead we'll fetch them when a user comes online.
2013-03-28 07:17:05 +02:00
JC Brand
49b4633c3f Send nick along with subscription request.
Additionally:
It's not feasible to get the current user's fullname from a vCard all the time,
so we still get it from the DOM for now.
2013-03-28 07:03:16 +02:00