From a30d8530e99e378338498321d59c21c6c2322430 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 31 Aug 2011 16:27:22 +0530 Subject: [PATCH] remove all target='_blank's so links open in same window --- gazetteer/static/js/auth_record_admin.js | 2 +- gazetteer/static/js/feature_admin.js | 2 +- gazetteer/static/js/gazetteer.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gazetteer/static/js/auth_record_admin.js b/gazetteer/static/js/auth_record_admin.js index fd8fe99..22ae0ac 100644 --- a/gazetteer/static/js/auth_record_admin.js +++ b/gazetteer/static/js/auth_record_admin.js @@ -20,7 +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 $a = $('').attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one); $('').text(props.uri).appendTo($tr); $('').text(props.feature_type).appendTo($tr); $('').text(props.admin2).appendTo($tr); diff --git a/gazetteer/static/js/feature_admin.js b/gazetteer/static/js/feature_admin.js index a80224f..0218095 100644 --- a/gazetteer/static/js/feature_admin.js +++ b/gazetteer/static/js/feature_admin.js @@ -12,7 +12,7 @@ $(function() { function getRow(d) { var $tr = $(''); var $one = $('').appendTo($tr); - var $a = $('').attr("target", "_blank").attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one); + var $a = $('').attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one); $('').text(d.feature_type).appendTo($tr); $('').text(d.similarity).appendTo($tr); $('').text(d.distance).appendTo($tr); diff --git a/gazetteer/static/js/gazetteer.js b/gazetteer/static/js/gazetteer.js index 7705242..79f02e8 100644 --- a/gazetteer/static/js/gazetteer.js +++ b/gazetteer/static/js/gazetteer.js @@ -41,7 +41,7 @@ $(function() { 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 $a = $('').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); $('').text(props.feature_type).appendTo($tr); $('').text(props.admin2).appendTo($tr);