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

register: create `renderRegistrationPanel` method

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