Browse Source

Fix createResult() attribute names.

Add:
        static/js/index.js
                -7f4cd92 didn't fully fix the incorrect `codelet` attribute
                names in `createResult()`; second attempt.
tags/v1.0^2
Severyn Kozak 10 years ago
parent
commit
3243d7b3b2
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      static/js/index.js
  2. +1
    -1
      templates/index.html

+ 3
- 3
static/js/index.js View File

@@ -260,10 +260,10 @@ function createResult(codelet) {
site.innerHTML = '<a href="' + codelet.origin[1] + '">' + codelet.origin[0] +'</a>';
nextMatch.innerHTML = 'next match';
prevMatch.innerHTML = 'prev match';
language.innerHTML = 'Language: <span>' + codelet.language + '</span>';
dateModified.innerHTML = 'Last modified: <span>' + codelet.date_modified + '</span>';
language.innerHTML = 'Language: <span>' + codelet.lang + '</span>';
dateModified.innerHTML = 'Last modified: <span>' + codelet.modified + '</span>';
// Needs to be changed from int to string on the server
dateCreated.innerHTML = 'Created: <span>' + codelet.date_created + '</span>';
dateCreated.innerHTML = 'Created: <span>' + codelet.created + '</span>';

var authorsHtml = 'Authors: <span>';
codelet.authors.forEach(function(a, i) {


+ 1
- 1
templates/index.html View File

@@ -18,7 +18,7 @@
= endblock

= block body
<div id="search-field" class="partly-visible">
<div id="search-field">
<a id="title" href="/">
<div id="title">
<span id="title-bit">bit</span


Loading…
Cancel
Save