mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Added support for parameters in presenters
This commit is contained in:
@ -8,18 +8,15 @@ App.Presenters.RegistrationPresenter = function(
|
||||
messagePresenter,
|
||||
api) {
|
||||
|
||||
topNavigationPresenter.select('register');
|
||||
|
||||
var $el = jQuery('#content');
|
||||
var template;
|
||||
|
||||
util.loadTemplate('registration-form').then(function(html) {
|
||||
template = _.template(html);
|
||||
init();
|
||||
});
|
||||
|
||||
function init() {
|
||||
render();
|
||||
topNavigationPresenter.select('register');
|
||||
util.loadTemplate('registration-form').then(function(html) {
|
||||
template = _.template(html);
|
||||
render();
|
||||
});
|
||||
}
|
||||
|
||||
function render() {
|
||||
@ -84,6 +81,7 @@ App.Presenters.RegistrationPresenter = function(
|
||||
};
|
||||
|
||||
return {
|
||||
init: init,
|
||||
render: render,
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user