зеркало из https://github.com/mozilla/gecko-dev.git
Bug 746499 - Links in the GCLI output area should open in new window (not in the output area); r=dcamp
This commit is contained in:
Родитель
3e589cd2cb
Коммит
4c00ddedda
|
@ -6097,6 +6097,12 @@ Output.prototype.toDom = function(element) {
|
|||
util.setContents(node, output.toString());
|
||||
}
|
||||
|
||||
// Make sure that links open in a new window.
|
||||
var links = node.querySelectorAll('*[href]');
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
links[i].setAttribute('target', '_blank');
|
||||
}
|
||||
|
||||
element.appendChild(node);
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче