diff --git a/converse.js b/converse.js index 055eb0023..02b173942 100644 --- a/converse.js +++ b/converse.js @@ -232,6 +232,7 @@ bosh_service_url: undefined, // The BOSH connection manager URL. cache_otr_key: false, debug: false, + domain_placeholder: " e.g. conversejs.org", // Placeholder text to show 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. expose_rid_and_sid: false, forward_messages: false, @@ -243,6 +244,7 @@ no_trimming: false, // Set to true for phantomjs tests (where browser apparently has no width) play_sounds: false, prebind: false, + providers_link: 'https://xmpp.net/directory.php', // Link to XMPP providers shown on registration page roster_groups: false, show_controlbox_by_default: false, show_only_online_users: false, @@ -4480,7 +4482,11 @@ this.$parent.append(this.$el.html( converse.templates.register_panel({ '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')})); @@ -4885,6 +4891,9 @@ render: function () { this.$tabs.append(converse.templates.login_tab({label_sign_in: __('Sign in')})); this.$el.find('input#jid').focus(); + if (!this.$el.is(':visible')) { + this.$el.show(); + } return this; }, @@ -4930,7 +4939,6 @@ converse.connection.connect(jid, password, converse.onConnect); }, - remove: function () { this.$tabs.empty(); this.$el.parent().empty(); diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index e40c895e2..527331999 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -1,7 +1,13 @@ Changelog ========= -0.8.4 (2014-12-01) +0.8.6 (Unreleased) +------------------ + +* Bugfix. Login panel didn't appear under certain conditions. [jcbrand] +* Text on the registration form was not configurable or i18n aware. [jcbrand] + +0.8.5 (2014-12-01) ------------------ * #117 JIDs or nicknames not shown in chat rooms. [jcbrand] diff --git a/docs/source/index.rst b/docs/source/index.rst index 0088e0920..6d610386f 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -1116,6 +1116,13 @@ Default: ``false`` If set to true, debugging output will be logged to the browser console. +domain_placeholder +------------------ + +Default: ``e.g. conversejs.org`` + +The placeholder text shown in the domain input on the registration form. + keepalive --------- @@ -1297,6 +1304,15 @@ Here is a code example:: })); +providers_link +-------------- + +Default: ``https://xmpp.net/directory.php`` + +The hyperlink on the registration form which points to a directory of public +XMPP servers. + + roster_groups ------------- diff --git a/src/templates/register_panel.html b/src/templates/register_panel.html index 7258f5bb8..82a9c99d1 100644 --- a/src/templates/register_panel.html +++ b/src/templates/register_panel.html @@ -1,7 +1,7 @@
- -

Tip: A list of public XMPP providers is available here.

+ +

{{help_providers}} {{help_providers_link}}.