FIXED FAP SUPPORT - Smileys in comment edit


Subject: FAP SUPPORT - Smileys in comment edit
When I go to edit a comment, I'm not able to include a Smiley by clicking on the Smiley.
If I click on the Smiley button to bring up the box of extra Smileys, I can select on of those.

Can anyone confirm this is happening to them?

Profile PM  
Subject: Re: Smileys In Comment Edit
yes, i can confirm that to be the case on my board too.

Profile PM  
Subject: Re: Smileys in comment edit
Thank you lefty74.
I was afraid that was the case. :cry:

Profile PM  
Subject: Re: BUG - Smileys In Comment Edit
Oh wow. but the "view all smilies" do work.

Profile PM  
Subject: Re: BUG - Smileys In Comment Edit
I think I found the error

Code: [Download] [Hide]
  1. #  
  2. #-----[ OPEN ]------------------------------------------  
  3. #  
  4. album_comment_body.tpl  
  5. #  
  6. #-----[ FIND ]------------------------------------------  
  7. #  
  8. //how to add smilies  
  9. function emotions(text)  
  10. {  
  11. var txtarea = opener.document.commentform.comment;  
  12. text = ' ' + text + ' ';  
  13. if (txtarea.createTextRange && txtarea.caretPos)  
  14. {  
  15. var caretPos = txtarea.caretPos;  
  16. caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;  
  17. txtarea.focus();  
  18. }  
  19. else if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0))  
  20. {  
  21. mozInsert(txtarea, text, "");  
  22. }  
  23. else  
  24. {  
  25. txtarea.value += text;  
  26. txtarea.focus();  
  27. }  
  28. }  
  29.  
  30. #  
  31. #-----[ REPLACE WITH ]------------------------------------------  
  32. #  
  33. function emoticon(text)  
  34. {  
  35. var txtarea = document.commentform.comment;  
  36. text = ' ' + text + ' ';  
  37. if (txtarea.createTextRange && txtarea.caretPos)  
  38. {  
  39. if (baseHeight != txtarea.caretPos.boundingHeight)  
  40. {  
  41. txtarea.focus();  
  42. storeCaret(txtarea);  
  43. }  
  44. var caretPos = txtarea.caretPos;  
  45. caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;  
  46. txtarea.focus();  
  47. }  
  48. else if ((txtarea.selectionEnd | txtarea.selectionEnd == 0) && (txtarea.selectionStart | txtarea.selectionStart == 0))  
  49. {  
  50. mozInsert(txtarea, text, "");  
  51. return;  
  52. }  
  53. else  
  54. {  
  55. txtarea.value += text;  
  56. txtarea.focus();  
  57. }  
  58. }  
  59.  
  60. #  
  61. #-----[ FIND ]------------------------------------------  
  62. #  
  63. onclick="emotions  
  64. #  
  65. #-----[ REPLACE WITH ]------------------------------------------  
  66. #  
  67. onclick="emoticon  
  68. #  
  69. #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------  
  70. #  
  71. # EoM  
  72.  

Profile PM  
Subject: Re: Smileys in comment edit
Thanks for looking into this lefty74.

I found that replacing only

var txtarea = opener.document.commentform.comment;

with

var txtarea = document.commentform.comment;


seems to work.

Profile PM  
Subject: Re: BUG - Smileys in comment edit
Thanks for fixing this as well... :wink:


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2168s (PHP: 9% SQL: 91%)
SQL queries: 13 - Debug Off - GZIP Enabled