瀏覽代碼

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…
取消
儲存