diff options
| author | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-01 17:29:57 -0400 |
|---|---|---|
| committer | Michael Foiani <mfoiani2019@communiyschoolnaples.org> | 2018-08-01 17:29:57 -0400 |
| commit | 51ccc779192bbb31c864ccc98ff9580854f60b76 (patch) | |
| tree | ab8b580fab57aa026ff6c6b7e7fab7a65866e0d0 /src/components/mao-fourms.js | |
| parent | 0faad7fc879de9de6200526afe8a4419022eaaa3 (diff) | |
Working on admin framework. Allows for certain uids to have extra controls if they use a key command and enter a password pulled from a database.
Diffstat (limited to 'src/components/mao-fourms.js')
| -rw-r--r-- | src/components/mao-fourms.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/mao-fourms.js b/src/components/mao-fourms.js index 78f0192..4aa9873 100644 --- a/src/components/mao-fourms.js +++ b/src/components/mao-fourms.js @@ -170,13 +170,13 @@ class MaoFourms extends connect(store)(PageViewElement) { var postsGrid = this.shadowRoot.getElementById('posts-grid'); postsGrid.innerHTML = ""; - for(var i = 0; i < this.fourmPosts.length; i++) { + for(var i = this.fourmPosts.length-1; i >=0; i--) { var paperCard = document.createElement('paper-card'); var cardContent = document.createElement('div'); var fourmAuthor = document.createElement('h4'); var fourmSubject = document.createElement('h3'); var fourmContent = document.createElement('p'); - + fourmAuthor.innerHTML = this.fourmPosts[i].email .replace('@communityschoolnaples.org', ''); fourmSubject.innerHTML = this.fourmPosts[i].subject; fourmContent.innerHTML = this.fourmPosts[i].content; |
