Commits

Lars Yencken committed 7040823

Fixes #3, scoping issue for links.

Comments (0)

Files changed (1)

simsearch/search/templates/search/display.html

         } else {
           e.attr('opacity', opacity);
         }
-        e.node.onclick = function() {
-          window.location.href = '{% url search_index %}?kanji=' + kanji +
-              '&path=' + data['path'];
-        };
+        e.node.onclick = function(k) {
+          return function() {
+            window.location.href = '{% url search_index %}?kanji=' + k +
+                '&path=' + data['path'];
+          };
+        }(kanji);
       }
     }