Commit 422aaef8 authored by JC Brand's avatar JC Brand

register: create `renderRegistrationPanel` method

parent 43408a61
...@@ -72,11 +72,7 @@ ...@@ -72,11 +72,7 @@
return result; return result;
}, },
renderLoginPanel: function () { renderRegistrationPanel: function () {
/* Also render a registration panel, when rendering the
* login panel.
*/
this.__super__.renderLoginPanel.apply(this, arguments);
var _converse = this.__super__._converse; var _converse = this.__super__._converse;
if (_converse.allow_registration) { if (_converse.allow_registration) {
this.registerpanel = new _converse.RegisterPanel({ this.registerpanel = new _converse.RegisterPanel({
...@@ -86,6 +82,15 @@ ...@@ -86,6 +82,15 @@
this.registerpanel.render().$el.addClass('hidden'); this.registerpanel.render().$el.addClass('hidden');
} }
return this; return this;
},
renderLoginPanel: function () {
/* Also render a registration panel, when rendering the
* login panel.
*/
this.__super__.renderLoginPanel.apply(this, arguments);
this.renderRegistrationPanel();
return this;
} }
} }
}, },
......
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