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