szurubooru/client/js/views/empty_view.js
rr- 69fe8ec31a client/general: refactor all the things
- Move controls to the "controls/" directory
- Make controls interface look similar to each other
- Prefix "private" methods and attributes with underscore
2016-05-21 00:08:43 +02:00

21 lines
502 B
JavaScript

'use strict';
const views = require('../util/views.js');
class EmptyView {
constructor() {
this._template = () => {
return views.htmlToDom(
'<div class="wrapper"><div class="messages"></div></div>');
};
}
render(ctx) {
const target = document.getElementById('content-holder');
const source = this._template();
views.listenToMessages(source);
views.showView(target, source);
}
}
module.exports = EmptyView;