Преглед изворни кода

Update docs due to recent pull requests.

JC Brand пре 10 година
родитељ
комит
6cdd793758
3 измењених фајлова са 15 додато и 5 уклоњено
  1. 5 5
      converse.js
  2. 3 0
      docs/CHANGES.rst
  3. 7 0
      docs/source/index.rst

+ 5 - 5
converse.js

@@ -217,6 +217,7 @@
         this.expose_rid_and_sid = false;
         this.forward_messages = false;
         this.hide_muc_server = false;
+        this.hide_offline_users = false;
         this.i18n = locales.en;
         this.keepalive = false;
         this.message_carbons = false;
@@ -226,7 +227,6 @@
         this.roster_groups = false;
         this.show_controlbox_by_default = false;
         this.show_only_online_users = false;
-        this.hide_offline_users = false;
         this.show_toolbar = true;
         this.storage = 'session';
         this.use_otr_by_default = false;
@@ -258,14 +258,15 @@
             'connection',
             'debug',
             'default_box_height',
-            'keepalive',
-            'message_carbons',
             'expose_rid_and_sid',
             'forward_messages',
             'fullname',
             'hide_muc_server',
+            'hide_offline_users',
             'i18n',
             'jid',
+            'keepalive',
+            'message_carbons',
             'no_trimming',
             'play_sounds',
             'prebind',
@@ -273,7 +274,6 @@
             'roster_groups',
             'show_controlbox_by_default',
             'show_only_online_users',
-            'hide_offline_users',
             'show_toolbar',
             'sid',
             'storage',
@@ -2482,7 +2482,7 @@
                         var lines = $input.val().split('\n');
                         for( var vk=0; vk<lines.length; vk++) {
                             var val = $.trim(lines[vk]);
-                            if (val == '')
+                            if (val === '')
                                 continue;
                             value.push(val); 
                         }

+ 3 - 0
docs/CHANGES.rst

@@ -17,6 +17,9 @@ Changelog
 * #251 Non-minified builds for debugging. [jcbrand]
 * #264 Remove unnecessary commas for ie8 compatibility. [Deuteu]
 * #267 Unread messages counter wrongly gets incremented by chat state notifications. [Deuteu]
+* #278 Unread messages counter doesn't unbind it's events. [Deuteu]
+* #279 Handle more field types for MUC config forms. [gbonvehi]
+* #280 New config option, ``hide_offline_users`` [gbonvehi]
 
 0.8.3 (2014-09-22)
 ------------------

+ 7 - 0
docs/source/index.rst

@@ -1195,6 +1195,13 @@ Hide the ``server`` input field of the form inside the ``Room`` panel of the
 controlbox. Useful if you want to restrict users to a specific XMPP server of
 your choosing.
 
+hide_offline_users
+------------------
+
+Default:  ``false``
+
+If set to ``true``, then don't show offline users.
+
 i18n
 ----