Commit eba99dc1 authored by Aaron Wells's avatar Aaron Wells

Removing target="blank" links created via MochiKit

Bug 1558361

behatnotneed

Change-Id: Idc3f0a010fef76a0908f65ce88bf52ae870170d3
parent 3f5b8930
......@@ -11,7 +11,7 @@ function addNewTaggedPostShortcut(blockid) {
var BlogIDInput = INPUT({'name': 'blog', 'type': 'text', 'value': selectedBlog.value});
var TagInput = INPUT({'name': 'tagselect', 'type': 'text', 'value': currentTag.value});
var myForm = FORM(
{'action': config.wwwroot + 'artefact/blog/post.php', 'target': '_blank', 'method': 'POST'},
{'action': config.wwwroot + 'artefact/blog/post.php', 'method': 'POST'},
BlogIDInput,
TagInput
);
......
......@@ -749,7 +749,7 @@ function FileBrowser(idprefix, folderid, config, globalconfig) {
filelink = self.filedata[id].title;
}
else {
filelink = A({'href':self.config.wwwroot + 'artefact/file/download.php?file=' + id, 'target':'_blank'}, self.filedata[id].title);
filelink = A({'href':self.config.wwwroot + 'artefact/file/download.php?file=' + id}, self.filedata[id].title);
}
appendChildNodes(tbody, TR({'class': (highlight ? ' highlight-file' : '')},
TD(null, IMG({'src':self.filedata[id].icon})),
......
......@@ -1651,7 +1651,7 @@ class ArtefactTypeBook extends ArtefactTypeResumeComposite {
}
public static function get_tablerenderer_body_js_string() {
return "DIV(r.description, DIV({'id':'composite-book-url'}, A({'href':r.url, 'target':'_blank'}, r.url)))";
return "DIV(r.description, DIV({'id':'composite-book-url'}, A({'href':r.url}, r.url)))";
}
public static function get_tablerenderer_attachments_js_string() {
......
......@@ -384,7 +384,7 @@ searchTable.rowfunction = function(rowdata, rownumber, globaldata) {
var identityNodes = [], profileIcon = null, roleSelector = null;
if (rowdata.type == 'user') {
profileIcon = IMG({'src': config.wwwroot + 'thumb.php?type=profileicon&maxwidth=25&maxheight=25&id=' + rowdata.id});
identityNodes.push(A({'href': rowdata.url, 'target': '_blank'}, rowdata.name));
identityNodes.push(A({'href': rowdata.url}, rowdata.name));
}
else if (rowdata.type == 'group') {
rowdata.role = null;
......@@ -399,7 +399,7 @@ searchTable.rowfunction = function(rowdata, rownumber, globaldata) {
rowdata.roledisplay = scrapeText(this.childNodes[this.selectedIndex]);
}
});
identityNodes.push(A({'href': rowdata.url, 'target': '_blank'}, rowdata.name));
identityNodes.push(A({'href': rowdata.url}, rowdata.name));
identityNodes.push(" - ");
identityNodes.push(roleSelector);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment