diff options
Diffstat (limited to 'src/js/arching-kaos-tools.js')
-rw-r--r-- | src/js/arching-kaos-tools.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/js/arching-kaos-tools.js b/src/js/arching-kaos-tools.js index 5edb6d9..821d152 100644 --- a/src/js/arching-kaos-tools.js +++ b/src/js/arching-kaos-tools.js @@ -371,15 +371,8 @@ function exe(action,dataIPFSHash,blockObject,zblockIPFSHash,zchainIPNSLink,zbloc akModuleFiles(zblockIPFSHash, blockObject, json); } else if (action == "news/add") { - var divs = document.querySelector('#news-section'); - var art = document.createElement("article"); - art.id = dataIPFSHash; - if(json.title){ - var h3 = document.createElement("h3"); - h3.innerText = json.title; - art.appendChild(h3); - } - if(json.datetime){ + akModuleNews(zblockIPFSHash, zblockObject, blockObject, json); + } var small = document.createElement("p"); small.innerText="Published: " +json.datetime; art.appendChild(small); |