r1441 - trunk/plugins/Drawer

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Tue Jan  3 17:53:30 2006
New Revision: 1441

Modified:
   trunk/plugins/Drawer/classes.js
Log:
no target if it's an object..

Modified: trunk/plugins/Drawer/classes.js
==============================================================================
--- trunk/plugins/Drawer/classes.js	(original)
+++ trunk/plugins/Drawer/classes.js	Tue Jan  3 17:53:30 2006
@@ -52,7 +52,11 @@
         var sel = window.getSelection();
         sel.selectEditableRange(drawertool.cssr);
         
-        var xml = "<a xmlns='"+ XHTMLNS + "' href='"+url+"' target='"+target+"'>"+sel+"</a>";
+		if (typeof target == "object") {
+			var xml = "<a xmlns='"+ XHTMLNS + "' href='"+url+"'>"+sel+"</a>";
+		} else {
+			var xml = "<a xmlns='"+ XHTMLNS + "' href='"+url+"' target='"+target+"'>"+sel+"</a>";
+		}
         
         return bxe_insertContent(xml, BXE_SELECTION);
         
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.