Commit 303a412b authored by JC Brand's avatar JC Brand

New release 0.8.6

parent f47949b9
{ {
"name": "converse", "name": "converse",
"version": "0.8.5", "version": "0.8.6",
"devDependencies": { "devDependencies": {
"jasmine": "https://github.com/jcbrand/jasmine.git#1_3_x", "jasmine": "https://github.com/jcbrand/jasmine.git#1_3_x",
"otr": "0.2.12", "otr": "0.2.12",
......
...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments ...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments
with(obj||{}){ with(obj||{}){
__p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+ __p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+
((__t=(label_domain))==null?'':__t)+ ((__t=(label_domain))==null?'':__t)+
'</label>\n <input type="text" name="domain" placeholder=" e.g. conversejs.org">\n <p class="form-help">Tip: A list of public XMPP providers is available <a href="https://xmpp.net/directory.php" class="url" target="_blank">here</a>.</p>\n <input class="submit" type="submit" value="'+ '</label>\n <input type="text" name="domain" placeholder="'+
((__t=(domain_placeholder))==null?'':__t)+
'">\n <p class="form-help">'+
((__t=(help_providers))==null?'':__t)+
' <a href="'+
((__t=(href_providers))==null?'':__t)+
'" class="url" target="_blank">'+
((__t=(help_providers_link))==null?'':__t)+
'</a>.</p>\n <input class="submit" type="submit" value="'+
((__t=(label_register))==null?'':__t)+ ((__t=(label_register))==null?'':__t)+
'">\n</form>\n'; '">\n</form>\n';
} }
...@@ -27926,21 +27934,26 @@ define("converse-dependencies", [ ...@@ -27926,21 +27934,26 @@ define("converse-dependencies", [
bosh_service_url: undefined, // The BOSH connection manager URL. bosh_service_url: undefined, // The BOSH connection manager URL.
cache_otr_key: false, cache_otr_key: false,
debug: false, debug: false,
domain_placeholder: " e.g. conversejs.org", // Placeholder text shown in the domain input on the registration form
default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms. default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms.
expose_rid_and_sid: false, expose_rid_and_sid: false,
forward_messages: false, forward_messages: false,
hide_muc_server: false, hide_muc_server: false,
hide_offline_users: false, hide_offline_users: false,
i18n: locales.en, i18n: locales.en,
jid: undefined,
keepalive: false, keepalive: false,
message_carbons: false, message_carbons: false,
no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width)
play_sounds: false, play_sounds: false,
prebind: false, prebind: false,
providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page
rid: undefined,
roster_groups: false, roster_groups: false,
show_controlbox_by_default: false, show_controlbox_by_default: false,
show_only_online_users: false, show_only_online_users: false,
show_toolbar: true, show_toolbar: true,
sid: undefined,
storage: 'session', storage: 'session',
use_otr_by_default: false, use_otr_by_default: false,
use_vcards: true, use_vcards: true,
...@@ -30099,17 +30112,18 @@ define("converse-dependencies", [ ...@@ -30099,17 +30112,18 @@ define("converse-dependencies", [
var $form= this.$el.find('form.chatroom-form'), var $form= this.$el.find('form.chatroom-form'),
$stanza = $(stanza), $stanza = $(stanza),
$fields = $stanza.find('field'), $fields = $stanza.find('field'),
title = $stanza.find('title').text(); title = $stanza.find('title').text(),
instructions = $stanza.find('instructions').text();
$form.find('span.spinner').remove(); $form.find('span.spinner').remove();
$form.append($('<legend>').text(title)); $form.append($('<legend>').text(title));
if (instructions != title) { if (instructions && instructions != title) {
$form.append($('<p class="instructions">').text(this.instructions)); $form.append($('<p class="instructions">').text(instructions));
} }
_.each($fields, function (field) { _.each($fields, function (field) {
$form.append(utils.xForm2webForm(field)); $form.append(utils.xForm2webForm($(field), $stanza));
}); });
$form.append('<input type="submit" value="'+__('Save')+'"/>'); $form.append('<input type="submit" class="save-submit" value="'+__('Save')+'"/>');
$form.append('<input type="button" value="'+__('Cancel')+'"/>'); $form.append('<input type="button" class="cancel-submit" value="'+__('Cancel')+'"/>');
$form.on('submit', $.proxy(this.saveConfiguration, this)); $form.on('submit', $.proxy(this.saveConfiguration, this));
$form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this)); $form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this));
}, },
...@@ -32174,7 +32188,11 @@ define("converse-dependencies", [ ...@@ -32174,7 +32188,11 @@ define("converse-dependencies", [
this.$parent.append(this.$el.html( this.$parent.append(this.$el.html(
converse.templates.register_panel({ converse.templates.register_panel({
'label_domain': __("Your XMPP provider's domain name:"), 'label_domain': __("Your XMPP provider's domain name:"),
'label_register': __('Fetch registration form') 'label_register': __('Fetch registration form'),
'help_providers': __('Tip: A list of public XMPP providers is available'),
'help_providers_link': __('here'),
'href_providers': converse.providers_link,
'domain_placeholder': converse.domain_placeholder
}) })
)); ));
this.$tabs.append(converse.templates.register_tab({label_register: __('Register')})); this.$tabs.append(converse.templates.register_tab({label_register: __('Register')}));
...@@ -32579,6 +32597,9 @@ define("converse-dependencies", [ ...@@ -32579,6 +32597,9 @@ define("converse-dependencies", [
render: function () { render: function () {
this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')})); this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')}));
this.$el.find('input#jid').focus(); this.$el.find('input#jid').focus();
if (!this.$el.is(':visible')) {
this.$el.show();
}
return this; return this;
}, },
...@@ -32624,7 +32645,6 @@ define("converse-dependencies", [ ...@@ -32624,7 +32645,6 @@ define("converse-dependencies", [
converse.connection.connect(jid, password, converse.onConnect); converse.connection.connect(jid, password, converse.onConnect);
}, },
remove: function () { remove: function () {
this.$tabs.empty(); this.$tabs.empty();
this.$el.parent().empty(); this.$el.parent().empty();
This diff is collapsed.
...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments ...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments
with(obj||{}){ with(obj||{}){
__p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+ __p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+
((__t=(label_domain))==null?'':__t)+ ((__t=(label_domain))==null?'':__t)+
'</label>\n <input type="text" name="domain" placeholder=" e.g. conversejs.org">\n <p class="form-help">Tip: A list of public XMPP providers is available <a href="https://xmpp.net/directory.php" class="url" target="_blank">here</a>.</p>\n <input class="submit" type="submit" value="'+ '</label>\n <input type="text" name="domain" placeholder="'+
((__t=(domain_placeholder))==null?'':__t)+
'">\n <p class="form-help">'+
((__t=(help_providers))==null?'':__t)+
' <a href="'+
((__t=(href_providers))==null?'':__t)+
'" class="url" target="_blank">'+
((__t=(help_providers_link))==null?'':__t)+
'</a>.</p>\n <input class="submit" type="submit" value="'+
((__t=(label_register))==null?'':__t)+ ((__t=(label_register))==null?'':__t)+
'">\n</form>\n'; '">\n</form>\n';
} }
...@@ -34683,21 +34691,26 @@ define("converse-dependencies", [ ...@@ -34683,21 +34691,26 @@ define("converse-dependencies", [
bosh_service_url: undefined, // The BOSH connection manager URL. bosh_service_url: undefined, // The BOSH connection manager URL.
cache_otr_key: false, cache_otr_key: false,
debug: false, debug: false,
domain_placeholder: " e.g. conversejs.org", // Placeholder text shown in the domain input on the registration form
default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms. default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms.
expose_rid_and_sid: false, expose_rid_and_sid: false,
forward_messages: false, forward_messages: false,
hide_muc_server: false, hide_muc_server: false,
hide_offline_users: false, hide_offline_users: false,
i18n: locales.en, i18n: locales.en,
jid: undefined,
keepalive: false, keepalive: false,
message_carbons: false, message_carbons: false,
no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width)
play_sounds: false, play_sounds: false,
prebind: false, prebind: false,
providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page
rid: undefined,
roster_groups: false, roster_groups: false,
show_controlbox_by_default: false, show_controlbox_by_default: false,
show_only_online_users: false, show_only_online_users: false,
show_toolbar: true, show_toolbar: true,
sid: undefined,
storage: 'session', storage: 'session',
use_otr_by_default: false, use_otr_by_default: false,
use_vcards: true, use_vcards: true,
...@@ -36856,17 +36869,18 @@ define("converse-dependencies", [ ...@@ -36856,17 +36869,18 @@ define("converse-dependencies", [
var $form= this.$el.find('form.chatroom-form'), var $form= this.$el.find('form.chatroom-form'),
$stanza = $(stanza), $stanza = $(stanza),
$fields = $stanza.find('field'), $fields = $stanza.find('field'),
title = $stanza.find('title').text(); title = $stanza.find('title').text(),
instructions = $stanza.find('instructions').text();
$form.find('span.spinner').remove(); $form.find('span.spinner').remove();
$form.append($('<legend>').text(title)); $form.append($('<legend>').text(title));
if (instructions != title) { if (instructions && instructions != title) {
$form.append($('<p class="instructions">').text(this.instructions)); $form.append($('<p class="instructions">').text(instructions));
} }
_.each($fields, function (field) { _.each($fields, function (field) {
$form.append(utils.xForm2webForm(field)); $form.append(utils.xForm2webForm($(field), $stanza));
}); });
$form.append('<input type="submit" value="'+__('Save')+'"/>'); $form.append('<input type="submit" class="save-submit" value="'+__('Save')+'"/>');
$form.append('<input type="button" value="'+__('Cancel')+'"/>'); $form.append('<input type="button" class="cancel-submit" value="'+__('Cancel')+'"/>');
$form.on('submit', $.proxy(this.saveConfiguration, this)); $form.on('submit', $.proxy(this.saveConfiguration, this));
$form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this)); $form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this));
}, },
...@@ -38931,7 +38945,11 @@ define("converse-dependencies", [ ...@@ -38931,7 +38945,11 @@ define("converse-dependencies", [
this.$parent.append(this.$el.html( this.$parent.append(this.$el.html(
converse.templates.register_panel({ converse.templates.register_panel({
'label_domain': __("Your XMPP provider's domain name:"), 'label_domain': __("Your XMPP provider's domain name:"),
'label_register': __('Fetch registration form') 'label_register': __('Fetch registration form'),
'help_providers': __('Tip: A list of public XMPP providers is available'),
'help_providers_link': __('here'),
'href_providers': converse.providers_link,
'domain_placeholder': converse.domain_placeholder
}) })
)); ));
this.$tabs.append(converse.templates.register_tab({label_register: __('Register')})); this.$tabs.append(converse.templates.register_tab({label_register: __('Register')}));
...@@ -39336,6 +39354,9 @@ define("converse-dependencies", [ ...@@ -39336,6 +39354,9 @@ define("converse-dependencies", [
render: function () { render: function () {
this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')})); this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')}));
this.$el.find('input#jid').focus(); this.$el.find('input#jid').focus();
if (!this.$el.is(':visible')) {
this.$el.show();
}
return this; return this;
}, },
...@@ -39381,7 +39402,6 @@ define("converse-dependencies", [ ...@@ -39381,7 +39402,6 @@ define("converse-dependencies", [
converse.connection.connect(jid, password, converse.onConnect); converse.connection.connect(jid, password, converse.onConnect);
}, },
remove: function () { remove: function () {
this.$tabs.empty(); this.$tabs.empty();
this.$el.parent().empty(); this.$el.parent().empty();
This diff is collapsed.
...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments ...@@ -13139,7 +13139,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments
with(obj||{}){ with(obj||{}){
__p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+ __p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+
((__t=(label_domain))==null?'':__t)+ ((__t=(label_domain))==null?'':__t)+
'</label>\n <input type="text" name="domain" placeholder=" e.g. conversejs.org">\n <p class="form-help">Tip: A list of public XMPP providers is available <a href="https://xmpp.net/directory.php" class="url" target="_blank">here</a>.</p>\n <input class="submit" type="submit" value="'+ '</label>\n <input type="text" name="domain" placeholder="'+
((__t=(domain_placeholder))==null?'':__t)+
'">\n <p class="form-help">'+
((__t=(help_providers))==null?'':__t)+
' <a href="'+
((__t=(href_providers))==null?'':__t)+
'" class="url" target="_blank">'+
((__t=(help_providers_link))==null?'':__t)+
'</a>.</p>\n <input class="submit" type="submit" value="'+
((__t=(label_register))==null?'':__t)+ ((__t=(label_register))==null?'':__t)+
'">\n</form>\n'; '">\n</form>\n';
} }
...@@ -42280,21 +42288,26 @@ define("converse-dependencies", [ ...@@ -42280,21 +42288,26 @@ define("converse-dependencies", [
bosh_service_url: undefined, // The BOSH connection manager URL. bosh_service_url: undefined, // The BOSH connection manager URL.
cache_otr_key: false, cache_otr_key: false,
debug: false, debug: false,
domain_placeholder: " e.g. conversejs.org", // Placeholder text shown in the domain input on the registration form
default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms. default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms.
expose_rid_and_sid: false, expose_rid_and_sid: false,
forward_messages: false, forward_messages: false,
hide_muc_server: false, hide_muc_server: false,
hide_offline_users: false, hide_offline_users: false,
i18n: locales.en, i18n: locales.en,
jid: undefined,
keepalive: false, keepalive: false,
message_carbons: false, message_carbons: false,
no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width)
play_sounds: false, play_sounds: false,
prebind: false, prebind: false,
providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page
rid: undefined,
roster_groups: false, roster_groups: false,
show_controlbox_by_default: false, show_controlbox_by_default: false,
show_only_online_users: false, show_only_online_users: false,
show_toolbar: true, show_toolbar: true,
sid: undefined,
storage: 'session', storage: 'session',
use_otr_by_default: false, use_otr_by_default: false,
use_vcards: true, use_vcards: true,
...@@ -44453,17 +44466,18 @@ define("converse-dependencies", [ ...@@ -44453,17 +44466,18 @@ define("converse-dependencies", [
var $form= this.$el.find('form.chatroom-form'), var $form= this.$el.find('form.chatroom-form'),
$stanza = $(stanza), $stanza = $(stanza),
$fields = $stanza.find('field'), $fields = $stanza.find('field'),
title = $stanza.find('title').text(); title = $stanza.find('title').text(),
instructions = $stanza.find('instructions').text();
$form.find('span.spinner').remove(); $form.find('span.spinner').remove();
$form.append($('<legend>').text(title)); $form.append($('<legend>').text(title));
if (instructions != title) { if (instructions && instructions != title) {
$form.append($('<p class="instructions">').text(this.instructions)); $form.append($('<p class="instructions">').text(instructions));
} }
_.each($fields, function (field) { _.each($fields, function (field) {
$form.append(utils.xForm2webForm(field)); $form.append(utils.xForm2webForm($(field), $stanza));
}); });
$form.append('<input type="submit" value="'+__('Save')+'"/>'); $form.append('<input type="submit" class="save-submit" value="'+__('Save')+'"/>');
$form.append('<input type="button" value="'+__('Cancel')+'"/>'); $form.append('<input type="button" class="cancel-submit" value="'+__('Cancel')+'"/>');
$form.on('submit', $.proxy(this.saveConfiguration, this)); $form.on('submit', $.proxy(this.saveConfiguration, this));
$form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this)); $form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this));
}, },
...@@ -46528,7 +46542,11 @@ define("converse-dependencies", [ ...@@ -46528,7 +46542,11 @@ define("converse-dependencies", [
this.$parent.append(this.$el.html( this.$parent.append(this.$el.html(
converse.templates.register_panel({ converse.templates.register_panel({
'label_domain': __("Your XMPP provider's domain name:"), 'label_domain': __("Your XMPP provider's domain name:"),
'label_register': __('Fetch registration form') 'label_register': __('Fetch registration form'),
'help_providers': __('Tip: A list of public XMPP providers is available'),
'help_providers_link': __('here'),
'href_providers': converse.providers_link,
'domain_placeholder': converse.domain_placeholder
}) })
)); ));
this.$tabs.append(converse.templates.register_tab({label_register: __('Register')})); this.$tabs.append(converse.templates.register_tab({label_register: __('Register')}));
...@@ -46933,6 +46951,9 @@ define("converse-dependencies", [ ...@@ -46933,6 +46951,9 @@ define("converse-dependencies", [
render: function () { render: function () {
this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')})); this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')}));
this.$el.find('input#jid').focus(); this.$el.find('input#jid').focus();
if (!this.$el.is(':visible')) {
this.$el.show();
}
return this; return this;
}, },
...@@ -46978,7 +46999,6 @@ define("converse-dependencies", [ ...@@ -46978,7 +46999,6 @@ define("converse-dependencies", [
converse.connection.connect(jid, password, converse.onConnect); converse.connection.connect(jid, password, converse.onConnect);
}, },
remove: function () { remove: function () {
this.$tabs.empty(); this.$tabs.empty();
this.$el.parent().empty(); this.$el.parent().empty();
This diff is collapsed.
...@@ -2805,7 +2805,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments ...@@ -2805,7 +2805,15 @@ var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments
with(obj||{}){ with(obj||{}){
__p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+ __p+='<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>'+
((__t=(label_domain))==null?'':__t)+ ((__t=(label_domain))==null?'':__t)+
'</label>\n <input type="text" name="domain" placeholder=" e.g. conversejs.org">\n <p class="form-help">Tip: A list of public XMPP providers is available <a href="https://xmpp.net/directory.php" class="url" target="_blank">here</a>.</p>\n <input class="submit" type="submit" value="'+ '</label>\n <input type="text" name="domain" placeholder="'+
((__t=(domain_placeholder))==null?'':__t)+
'">\n <p class="form-help">'+
((__t=(help_providers))==null?'':__t)+
' <a href="'+
((__t=(href_providers))==null?'':__t)+
'" class="url" target="_blank">'+
((__t=(help_providers_link))==null?'':__t)+
'</a>.</p>\n <input class="submit" type="submit" value="'+
((__t=(label_register))==null?'':__t)+ ((__t=(label_register))==null?'':__t)+
'">\n</form>\n'; '">\n</form>\n';
} }
...@@ -31946,21 +31954,26 @@ define("converse-dependencies", [ ...@@ -31946,21 +31954,26 @@ define("converse-dependencies", [
bosh_service_url: undefined, // The BOSH connection manager URL. bosh_service_url: undefined, // The BOSH connection manager URL.
cache_otr_key: false, cache_otr_key: false,
debug: false, debug: false,
domain_placeholder: " e.g. conversejs.org", // Placeholder text shown in the domain input on the registration form
default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms. default_box_height: 400, // The default height, in pixels, for the control box, chat boxes and chatrooms.
expose_rid_and_sid: false, expose_rid_and_sid: false,
forward_messages: false, forward_messages: false,
hide_muc_server: false, hide_muc_server: false,
hide_offline_users: false, hide_offline_users: false,
i18n: locales.en, i18n: locales.en,
jid: undefined,
keepalive: false, keepalive: false,
message_carbons: false, message_carbons: false,
no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width)
play_sounds: false, play_sounds: false,
prebind: false, prebind: false,
providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page
rid: undefined,
roster_groups: false, roster_groups: false,
show_controlbox_by_default: false, show_controlbox_by_default: false,
show_only_online_users: false, show_only_online_users: false,
show_toolbar: true, show_toolbar: true,
sid: undefined,
storage: 'session', storage: 'session',
use_otr_by_default: false, use_otr_by_default: false,
use_vcards: true, use_vcards: true,
...@@ -34119,17 +34132,18 @@ define("converse-dependencies", [ ...@@ -34119,17 +34132,18 @@ define("converse-dependencies", [
var $form= this.$el.find('form.chatroom-form'), var $form= this.$el.find('form.chatroom-form'),
$stanza = $(stanza), $stanza = $(stanza),
$fields = $stanza.find('field'), $fields = $stanza.find('field'),
title = $stanza.find('title').text(); title = $stanza.find('title').text(),
instructions = $stanza.find('instructions').text();
$form.find('span.spinner').remove(); $form.find('span.spinner').remove();
$form.append($('<legend>').text(title)); $form.append($('<legend>').text(title));
if (instructions != title) { if (instructions && instructions != title) {
$form.append($('<p class="instructions">').text(this.instructions)); $form.append($('<p class="instructions">').text(instructions));
} }
_.each($fields, function (field) { _.each($fields, function (field) {
$form.append(utils.xForm2webForm(field)); $form.append(utils.xForm2webForm($(field), $stanza));
}); });
$form.append('<input type="submit" value="'+__('Save')+'"/>'); $form.append('<input type="submit" class="save-submit" value="'+__('Save')+'"/>');
$form.append('<input type="button" value="'+__('Cancel')+'"/>'); $form.append('<input type="button" class="cancel-submit" value="'+__('Cancel')+'"/>');
$form.on('submit', $.proxy(this.saveConfiguration, this)); $form.on('submit', $.proxy(this.saveConfiguration, this));
$form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this)); $form.find('input[type=button]').on('click', $.proxy(this.cancelConfiguration, this));
}, },
...@@ -36194,7 +36208,11 @@ define("converse-dependencies", [ ...@@ -36194,7 +36208,11 @@ define("converse-dependencies", [
this.$parent.append(this.$el.html( this.$parent.append(this.$el.html(
converse.templates.register_panel({ converse.templates.register_panel({
'label_domain': __("Your XMPP provider's domain name:"), 'label_domain': __("Your XMPP provider's domain name:"),
'label_register': __('Fetch registration form') 'label_register': __('Fetch registration form'),
'help_providers': __('Tip: A list of public XMPP providers is available'),
'help_providers_link': __('here'),
'href_providers': converse.providers_link,
'domain_placeholder': converse.domain_placeholder
}) })
)); ));
this.$tabs.append(converse.templates.register_tab({label_register: __('Register')})); this.$tabs.append(converse.templates.register_tab({label_register: __('Register')}));
...@@ -36599,6 +36617,9 @@ define("converse-dependencies", [ ...@@ -36599,6 +36617,9 @@ define("converse-dependencies", [
render: function () { render: function () {
this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')})); this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')}));
this.$el.find('input#jid').focus(); this.$el.find('input#jid').focus();
if (!this.$el.is(':visible')) {
this.$el.show();
}
return this; return this;
}, },
...@@ -36644,7 +36665,6 @@ define("converse-dependencies", [ ...@@ -36644,7 +36665,6 @@ define("converse-dependencies", [
converse.connection.connect(jid, password, converse.onConnect); converse.connection.connect(jid, password, converse.onConnect);
}, },
remove: function () { remove: function () {
this.$tabs.empty(); this.$tabs.empty();
this.$el.parent().empty(); this.$el.parent().empty();
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -608,7 +608,15 @@ var __t, __p = '', __e = _.escape; ...@@ -608,7 +608,15 @@ var __t, __p = '', __e = _.escape;
with (obj) { with (obj) {
__p += '<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>' + __p += '<form id="converse-register">\n <span class="reg-feedback"></span>\n <label>' +
((__t = (label_domain)) == null ? '' : __t) + ((__t = (label_domain)) == null ? '' : __t) +
'</label>\n <input type="text" name="domain" placeholder=" e.g. conversejs.org">\n <p class="form-help">Tip: A list of public XMPP providers is available <a href="https://xmpp.net/directory.php" class="url" target="_blank">here</a>.</p>\n <input class="submit" type="submit" value="' + '</label>\n <input type="text" name="domain" placeholder="' +
((__t = (domain_placeholder)) == null ? '' : __t) +
'">\n <p class="form-help">' +
((__t = (help_providers)) == null ? '' : __t) +
' <a href="' +
((__t = (href_providers)) == null ? '' : __t) +
'" class="url" target="_blank">' +
((__t = (help_providers_link)) == null ? '' : __t) +
'</a>.</p>\n <input class="submit" type="submit" value="' +
((__t = (label_register)) == null ? '' : __t) + ((__t = (label_register)) == null ? '' : __t) +
'">\n</form>\n'; '">\n</form>\n';
......
This diff is collapsed.
Changelog Changelog
========= =========
0.8.6 (Unreleased) 0.8.6 (2014-12-07)
------------------ ------------------
* Bugfix. Login panel didn't appear under certain conditions. [jcbrand] * Bugfix. Login panel didn't appear under certain conditions. [jcbrand]
......
...@@ -48,9 +48,9 @@ copyright = u'2014, JC Brand' ...@@ -48,9 +48,9 @@ copyright = u'2014, JC Brand'
# built documents. # built documents.
# #
# The short X.Y version. # The short X.Y version.
version = '0.8.5' version = '0.8.6'
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = '0.8.5' release = '0.8.6'
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
{ {
"name": "converse.js", "name": "converse.js",
"version": "0.8.5", "version": "0.8.6",
"description": "Browser based XMPP instant messaging client", "description": "Browser based XMPP instant messaging client",
"main": "main.js", "main": "main.js",
"directories": { "directories": {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment