diff --git a/www/drive/inner.js b/www/drive/inner.js index b0f8ca456..fe06dca69 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -3005,7 +3005,10 @@ define([ APP.$displayName.text(name); }); }; + var firstConnection = true; var onReady = function () { + if (!firstConnection) { return; } // TODO fix this issue in listmap + firstConnection = false; $('body').css('display', ''); APP.files = proxy; if (!proxy.drive || typeof(proxy.drive) !== 'object') { proxy.drive = {}; } diff --git a/www/poll/inner.js b/www/poll/inner.js index 7ae98bbfd..767817ddd 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -1164,8 +1164,11 @@ define([ var rt = APP.rt = Listmap.create(listmapConfig); APP.proxy = rt.proxy; + var firstConnection = true; rt.proxy.on('create', onCreate) .on('ready', function (info) { + if (!firstConnection) { return; } // TODO fix this issue in listmap + firstConnection = false; common.getPadAttribute('userid', function (e, userid) { if (e) { console.error(e); } APP.userid = userid;