client/views: fix rendering non-void elements
This commit is contained in:
parent
d6daf84da0
commit
1086bca3c2
3 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
require('./util/polyfill.js');
|
require('./util/polyfill.js');
|
||||||
require('./util/handlebars-helpers.js');
|
|
||||||
|
|
||||||
let controllers = [];
|
let controllers = [];
|
||||||
controllers.push(require('./controllers/auth_controller.js'));
|
controllers.push(require('./controllers/auth_controller.js'));
|
||||||
|
|
|
@ -37,8 +37,8 @@ function _serializeElement(name, attributes) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeNonVoidElement(name, attributes, content) {
|
function makeNonVoidElement(name, attributes, content) {
|
||||||
return '<{0}>{1}</{0}>'.format(
|
return '<{0}>{1}</{2}>'.format(
|
||||||
_serializeElement(name, attributes), content);
|
_serializeElement(name, attributes), content, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
function makeVoidElement(name, attributes) {
|
function makeVoidElement(name, attributes) {
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
require('../util/handlebars-helpers.js');
|
||||||
const views = require('../util/views.js');
|
const views = require('../util/views.js');
|
||||||
|
|
||||||
class TopNavView {
|
class TopNavView {
|
||||||
|
|
Loading…
Reference in a new issue