Add default config options to converse.js

This commit is contained in:
JC Brand 2013-05-21 16:48:51 +02:00
parent 1311ae0652
commit 7f4f3d7def
2 changed files with 8 additions and 6 deletions

View File

@ -2510,6 +2510,13 @@
};
converse.initialize = function (settings) {
// Default values
this.animate = true;
this.auto_list_rooms = false;
this.auto_subscribe = false;
this.hide_muc_server = false;
this.prebind = false;
this.xhr_user_search = false;
_.extend(this, settings);
this.chatboxes = new this.ChatBoxes();
this.chatboxesview = new this.ChatBoxesView({model: this.chatboxes});

View File

@ -1,10 +1,5 @@
require(["jquery", "converse"], function($, converse) {
converse.initialize({
animate: true,
bosh_service_url: 'https://bind.opkode.im', // Please use this connection manager only for testing purposes
prebind: false,
xhr_user_search: false,
auto_subscribe: false,
auto_list_rooms: false
bosh_service_url: 'https://bind.opkode.im' // Please use this connection manager only for testing purposes
});
});