changeset 634:7fe9c706fdb2

for xlink:href also set target
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 05 Feb 2015 16:41:14 +0100
parents a081395860f4
children ceffbeaf6d22
files htdocs/svg-edit/editor/svgutils.js
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/htdocs/svg-edit/editor/svgutils.js	Thu Feb 05 16:38:05 2015 +0100
+++ b/htdocs/svg-edit/editor/svgutils.js	Thu Feb 05 16:41:14 2015 +0100
@@ -351,6 +351,7 @@
 // Sets the given element's xlink:href value
 svgedit.utilities.setHref = function(elem, val) {
 	elem.setAttributeNS(NS.XLINK, 'xlink:href', val);
+	elem.setAttributeNS(NS.XLINK, 'target', '_blank');
 };
 
 // Function: findDefs