From 3243d7b3b26f8f4321fec06029bb108d58a7f2ab Mon Sep 17 00:00:00 2001 From: Severyn Kozak Date: Sat, 14 Jun 2014 23:08:01 -0400 Subject: [PATCH] Fix createResult() attribute names. Add: static/js/index.js -7f4cd92 didn't fully fix the incorrect `codelet` attribute names in `createResult()`; second attempt. --- static/js/index.js | 6 +++--- templates/index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/index.js b/static/js/index.js index 49d522c..22db9a3 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -260,10 +260,10 @@ function createResult(codelet) { site.innerHTML = '' + codelet.origin[0] +''; nextMatch.innerHTML = 'next match'; prevMatch.innerHTML = 'prev match'; - language.innerHTML = 'Language: ' + codelet.language + ''; - dateModified.innerHTML = 'Last modified: ' + codelet.date_modified + ''; + language.innerHTML = 'Language: ' + codelet.lang + ''; + dateModified.innerHTML = 'Last modified: ' + codelet.modified + ''; // Needs to be changed from int to string on the server - dateCreated.innerHTML = 'Created: ' + codelet.date_created + ''; + dateCreated.innerHTML = 'Created: ' + codelet.created + ''; var authorsHtml = 'Authors: '; codelet.authors.forEach(function(a, i) { diff --git a/templates/index.html b/templates/index.html index 47e9a9c..28b1345 100644 --- a/templates/index.html +++ b/templates/index.html @@ -18,7 +18,7 @@ = endblock = block body -