Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
a2b8d04d
Commit
a2b8d04d
authored
Mar 17, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move config settings to the relevant plugins
parent
3f0e9e8d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
src/converse-controlbox.js
src/converse-controlbox.js
+4
-0
src/converse-core.js
src/converse-core.js
+0
-7
src/converse-muc.js
src/converse-muc.js
+1
-0
src/converse-rosterview.js
src/converse-rosterview.js
+2
-0
No files found.
src/converse-controlbox.js
View file @
a2b8d04d
...
...
@@ -162,7 +162,11 @@
*/
var
converse
=
this
.
converse
;
this
.
updateSettings
({
allow_logout
:
true
,
default_domain
:
undefined
,
show_controlbox_by_default
:
false
,
xhr_user_search
:
false
,
xhr_user_search_url
:
''
});
var
LABEL_CONTACTS
=
__
(
'
Contacts
'
);
...
...
src/converse-core.js
View file @
a2b8d04d
...
...
@@ -243,15 +243,11 @@
// Default configuration values
// ----------------------------
this
.
default_settings
=
{
allow_chat_pending_contacts
:
false
,
allow_contact_removal
:
true
,
allow_contact_requests
:
true
,
allow_dragresize
:
true
,
allow_logout
:
true
,
animate
:
true
,
authentication
:
'
login
'
,
// Available values are "login", "prebind", "anonymous".
auto_away
:
0
,
// Seconds after which user status is set to 'away'
auto_list_rooms
:
false
,
auto_login
:
false
,
// Currently only used in connection with anonymous login
auto_reconnect
:
false
,
auto_subscribe
:
false
,
...
...
@@ -259,7 +255,6 @@
bosh_service_url
:
undefined
,
// The BOSH connection manager URL.
csi_waiting_time
:
0
,
// Support for XEP-0352. Seconds before client is considered idle and CSI is sent out.
debug
:
false
,
default_domain
:
undefined
,
expose_rid_and_sid
:
false
,
forward_messages
:
false
,
hide_offline_users
:
false
,
...
...
@@ -287,8 +282,6 @@
websocket_url
:
undefined
,
xhr_custom_status
:
false
,
xhr_custom_status_url
:
''
,
xhr_user_search
:
false
,
xhr_user_search_url
:
''
};
_
.
extend
(
this
,
this
.
default_settings
);
...
...
src/converse-muc.js
View file @
a2b8d04d
...
...
@@ -207,6 +207,7 @@
this
.
updateSettings
({
allow_muc
:
true
,
auto_join_on_invite
:
false
,
// Auto-join chatroom on invite
auto_list_rooms
:
false
,
hide_muc_server
:
false
,
muc_history_max_stanzas
:
undefined
,
// Takes an integer, limits the amount of messages to fetch from chat room's history
show_toolbar
:
true
,
...
...
src/converse-rosterview.js
View file @
a2b8d04d
...
...
@@ -41,6 +41,8 @@
* loaded by converse.js's plugin machinery.
*/
this
.
updateSettings
({
allow_chat_pending_contacts
:
false
,
allow_contact_removal
:
true
,
show_toolbar
:
true
,
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment