diff --git a/docs/content/data.ndtl b/docs/content/data.ndtl index f48659e..21384ed 100644 --- a/docs/content/data.ndtl +++ b/docs/content/data.ndtl @@ -4067,4 +4067,11 @@ ORKL AUTH : kodedninja LINK : https://github.com/kodedninja/orkl NOTE : reference for memex loading (spinner) - TAGS : p2p, dat, blog \ No newline at end of file + TAGS : p2p, dat, blog + +WITH LOVE FROM VERY SMALL PLACES + DATE : 12018-10-30 + TYPE : music + AUTH : kodedninja + TAGS : ambient, calm + LINK : https://0x22.bandcamp.com/album/with-love-from-very-small-places \ No newline at end of file diff --git a/docs/logic/view.js b/docs/logic/view.js index e513277..391f743 100644 --- a/docs/logic/view.js +++ b/docs/logic/view.js @@ -58,14 +58,15 @@ function View() } // BUILD - this.grid.innerHTML = ''; - var dbKeys = Object.keys(db); - var i = 0; + let dbKeys = Object.keys(db); + let i = 0; + let contentHtml = ''; while (i < dbKeys.length) { - this.buildEntry(db, dbKeys[i]); + contentHtml += this.buildEntry(db, dbKeys[i]); i++; } + this.grid.innerHTML = contentHtml; // LAYOUT if (SETTINGS.USEMASONRY) @@ -74,7 +75,7 @@ function View() this.msnry.layout(); } - var imgLoad = imagesLoaded( container ); + let imgLoad = imagesLoaded( container ); // When all images finish: redo mansonry layout imgLoad.on( 'always', function() { parent.msnry.layout(); } ); } @@ -324,8 +325,7 @@ function View() } entry += ``; - - this.grid.innerHTML += entry; + return entry; } this.doTypeIcon = function(type, count)