From 01908081b62039e6b043d1fc0fd17cf73522729a Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 30 Aug 2011 23:56:23 +0530 Subject: [PATCH] err, oops, thats what you get when you violate DRY. --- gazetteer/static/js/auth_record_admin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gazetteer/static/js/auth_record_admin.js b/gazetteer/static/js/auth_record_admin.js index f4f09fd..cc96844 100644 --- a/gazetteer/static/js/auth_record_admin.js +++ b/gazetteer/static/js/auth_record_admin.js @@ -20,8 +20,7 @@ function copied over from gazetteer.js. TODO:resolve to DRY. function getRow(props) { var $tr = $(''); var $one = $('').appendTo($tr); - var $a = $('').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name + " ").appendTo($one); - var $a2 = $('').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one); + var $a = $('').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one); $('').text(props.feature_type).appendTo($tr); $('').text(props.admin2).appendTo($tr); $('').text(props.admin1).appendTo($tr);