FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Automatic link creation (with description) not working under gecko browsers
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Automatic link creation (with description) not working under gecko browsers [message #31475 is a reply to message #31473] Thu, 27 April 2006 15:09 Go to previous messageGo to previous message
ggray is currently offline  ggray   Ukraine
Messages: 96
Registered: October 2004
Location: Crimea: Simferopol
Karma:
Member

ok, i found the problem, and back-port from CVS patch to 2.7.4 forum version:
--- lib.js	2006-04-27 18:04:08.000000000 +0300
+++ lib.js	2006-04-27 17:59:15.000000000 +0300
@@ -37,7 +37,15 @@
 
 function insertTagMoz(obj, stag, etag)
 {
-	var txt = window.getSelection();
+	var txt;
+
+	if (window.getSelection) {
+		txt = window.getSelection();
+	} else if (document.getSelection) {
+		txt = document.getSelection();
+	} else if (document.selection) {
+		txt = document.selection.createRange().text;
+	}
 
 	if (!txt || txt == '') {
 		var t = document.getElementById('txtb');
  • Attachment: lib.js.diff
    (Size: 0.50KB, Downloaded 832 times)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PM Error
Next Topic: V 2.7.4, msg error compiling pre_reg template
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 15:05:26 GMT 2024

Total time taken to generate the page: 0.04900 seconds