use new similar.json endpoint

This commit is contained in:
Sanj 2011-08-31 19:14:26 +05:30
parent 7d38c16329
commit 2766aa3363

View File

@ -1,6 +1,6 @@
$(function() { $(function() {
$.getJSON("/feature/search_related.json", { $.getJSON("/feature/" + FEATURE_ID + "/similar.json", {
'id': FEATURE_ID
}, function(data) { }, function(data) {
for (var i=0; i<data.length;i++) { for (var i=0; i<data.length;i++) {
var $row = getRow(data[i]); var $row = getRow(data[i]);