client/views: fix rendering non-void elements

This commit is contained in:
rr- 2016-04-11 18:36:27 +02:00
parent d6daf84da0
commit 1086bca3c2
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,6 @@
'use strict';
require('./util/polyfill.js');
require('./util/handlebars-helpers.js');
let controllers = [];
controllers.push(require('./controllers/auth_controller.js'));

View file

@ -37,8 +37,8 @@ function _serializeElement(name, attributes) {
}
function makeNonVoidElement(name, attributes, content) {
return '<{0}>{1}</{0}>'.format(
_serializeElement(name, attributes), content);
return '<{0}>{1}</{2}>'.format(
_serializeElement(name, attributes), content, name);
}
function makeVoidElement(name, attributes) {

View file

@ -1,5 +1,6 @@
'use strict';
require('../util/handlebars-helpers.js');
const views = require('../util/views.js');
class TopNavView {