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?
FIXED FAP SUPPORT - Smileys in comment edit
Subject: Re: BUG - Smileys In Comment Edit
I think I found the error
- #
- #-----[ OPEN ]------------------------------------------
- #
- album_comment_body.tpl
- #
- #-----[ FIND ]------------------------------------------
- #
- //how to add smilies
- function emotions(text)
- {
- var txtarea = opener.document.commentform.comment;
- text = ' ' + text + ' ';
- if (txtarea.createTextRange && txtarea.caretPos)
- {
- var caretPos = txtarea.caretPos;
- caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
- txtarea.focus();
- }
- else if (txtarea.selectionEnd && (txtarea.selectionStart | txtarea.selectionStart == 0))
- {
- mozInsert(txtarea, text, "");
- }
- else
- {
- txtarea.value += text;
- txtarea.focus();
- }
- }
- #
- #-----[ REPLACE WITH ]------------------------------------------
- #
- function emoticon(text)
- {
- var txtarea = document.commentform.comment;
- text = ' ' + text + ' ';
- if (txtarea.createTextRange && txtarea.caretPos)
- {
- if (baseHeight != txtarea.caretPos.boundingHeight)
- {
- txtarea.focus();
- storeCaret(txtarea);
- }
- var caretPos = txtarea.caretPos;
- caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
- txtarea.focus();
- }
- else if ((txtarea.selectionEnd | txtarea.selectionEnd == 0) && (txtarea.selectionStart | txtarea.selectionStart == 0))
- {
- mozInsert(txtarea, text, "");
- return;
- }
- else
- {
- txtarea.value += text;
- txtarea.focus();
- }
- }
- #
- #-----[ FIND ]------------------------------------------
- #
- onclick="emotions
- #
- #-----[ REPLACE WITH ]------------------------------------------
- #
- onclick="emoticon
- #
- #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
- #
- # EoM
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.
I found that replacing only
var txtarea = opener.document.commentform.comment;
with
var txtarea = document.commentform.comment;
seems to work.
Page 1 of 1
You cannot post new topicsYou 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