remove all target='_blank's so links open in same window
This commit is contained in:
parent
9dbd383ff4
commit
a30d8530e9
|
@ -20,7 +20,7 @@ function copied over from gazetteer.js. TODO:resolve to DRY.
|
||||||
function getRow(props) {
|
function getRow(props) {
|
||||||
var $tr = $('<tr />');
|
var $tr = $('<tr />');
|
||||||
var $one = $('<td />').appendTo($tr);
|
var $one = $('<td />').appendTo($tr);
|
||||||
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
|
var $a = $('<a />').attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
|
||||||
$('<td />').text(props.uri).appendTo($tr);
|
$('<td />').text(props.uri).appendTo($tr);
|
||||||
$('<td />').text(props.feature_type).appendTo($tr);
|
$('<td />').text(props.feature_type).appendTo($tr);
|
||||||
$('<td />').text(props.admin2).appendTo($tr);
|
$('<td />').text(props.admin2).appendTo($tr);
|
||||||
|
|
|
@ -12,7 +12,7 @@ $(function() {
|
||||||
function getRow(d) {
|
function getRow(d) {
|
||||||
var $tr = $('<tr />');
|
var $tr = $('<tr />');
|
||||||
var $one = $('<td />').appendTo($tr);
|
var $one = $('<td />').appendTo($tr);
|
||||||
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one);
|
var $a = $('<a />').attr("href", "/admin/places/feature/" + d.id).text(d.preferred_name).appendTo($one);
|
||||||
$('<td />').text(d.feature_type).appendTo($tr);
|
$('<td />').text(d.feature_type).appendTo($tr);
|
||||||
$('<td />').text(d.similarity).appendTo($tr);
|
$('<td />').text(d.similarity).appendTo($tr);
|
||||||
$('<td />').text(d.distance).appendTo($tr);
|
$('<td />').text(d.distance).appendTo($tr);
|
||||||
|
|
|
@ -41,7 +41,7 @@ $(function() {
|
||||||
function getRow(props) {
|
function getRow(props) {
|
||||||
var $tr = $('<tr />');
|
var $tr = $('<tr />');
|
||||||
var $one = $('<td />').appendTo($tr);
|
var $one = $('<td />').appendTo($tr);
|
||||||
var $a = $('<a />').attr("target", "_blank").attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
|
var $a = $('<a />').attr("href", "/admin/places/feature/" + props.id).text(props.preferred_name).appendTo($one);
|
||||||
// var $a2 = $('<a />').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one);
|
// var $a2 = $('<a />').addClass("viewSimilar").attr("target", "_blank").attr("href", "/search_related?id=" + props.id).text("view similar").appendTo($one);
|
||||||
$('<td />').text(props.feature_type).appendTo($tr);
|
$('<td />').text(props.feature_type).appendTo($tr);
|
||||||
$('<td />').text(props.admin2).appendTo($tr);
|
$('<td />').text(props.admin2).appendTo($tr);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user