2016-04-09 22:35:09 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
|
|
|
|
class EmptyView {
|
|
|
|
constructor() {
|
|
|
|
this.template = views.htmlToDom('<div class="messages"></div>');
|
|
|
|
}
|
|
|
|
|
|
|
|
render(ctx) {
|
|
|
|
const target = document.getElementById('content-holder');
|
|
|
|
const source = this.template;
|
2016-05-11 21:29:57 +02:00
|
|
|
views.listenToMessages(source);
|
2016-04-09 22:35:09 +02:00
|
|
|
views.showView(target, source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = EmptyView;
|