Преглед изворни кода

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 година
родитељ
комит
3243d7b3b2
2 измењених фајлова са 4 додато и 4 уклоњено
  1. +3
    -3
      static/js/index.js
  2. +1
    -1
      templates/index.html

+ 3
- 3
static/js/index.js Прегледај датотеку

@@ -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 Прегледај датотеку

@@ -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…
Откажи
Сачувај