Put pages.meet black until its loaded
This commit is contained in:
parent
1457cfcf56
commit
dcc36ae91d
|
@ -1,13 +1,13 @@
|
|||
app.pages.meet = {
|
||||
load: function(args) {
|
||||
const dom = document.querySelector('#page-meet #content');
|
||||
dom.innerHTML = '';
|
||||
document.querySelector('#page-meet').removeAttribute('style');
|
||||
http.get('/api/v1/feed/meet', {}, function(json) {
|
||||
if (json === undefined) return;
|
||||
app.template.loadMany(['meet.item','meet.actions'], function(_) {
|
||||
var _;
|
||||
_ = function () {
|
||||
const dom = document.querySelector('#page-meet #content');
|
||||
dom.innerHTML = '';
|
||||
for (var i = 0; i < json.length; i++) {
|
||||
var tpl = app.template.fill(json[i], app.template.get('meet.item'),
|
||||
function (k,v) {
|
||||
|
|
Loading…
Reference in New Issue