Gossamer Forum
Quote Reply
Bug?
I think that the updateTab javascript is missing from include_post_html_common_write.html.
This is giving a javascript error if you click on any of the icons above.
Quote Reply
Re: [afinlr] Bug? In reply to
Most likely you need to perform some template updates. See this thread:

http://www.gossamer-threads.com/...i?post=260544#260544

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Bug? In reply to
Hi,

It's on this forum - try writing a post and clicking on any of the icons.

Laura.

(I'm not angry - just checking that the problem was still there!)

Last edited by:

afinlr: Feb 10, 2004, 12:38 PM
Quote Reply
Re: [afinlr] Bug? In reply to
I can confirm this problem too. I get a javascript error also when click on post icons.

It happens here on this forum and on my forum upgraded to 1.2.1

I updated my templates.

IE 6 on WinXP Pro

Any ideas on a fix?

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [CRUZN8R] Bug? In reply to
Hi,

Sorry - I should have posted the fix.
If you find the line

<%GForum::Post::icons('with blank')%>

in the include_post_html_common_write template, you need this javascript below it:

<script language="Javascript">
<!--
// This handles the tabing - if you change the selection, the tabIndex needs to
// be changed as well so that we don't have to tab through all of the icons if
// going through the page with tab
function updateTab (selected_val) {
var col = document.getElementsByName("post_icon");
for (i = 0; i < col.length; i++) {
if (selected_val == col.value)
col.tabIndex = 5;
else
col.tabIndex = 0;
}
}
// -->
</script>

Laura.
Quote Reply
Re: [afinlr] Bug? In reply to
Thanks that fixed it.

This forum still need it though.

----------
Michael J. Challis - CRUZN8R - PT Cruiser Club - http://www.ptcruiserclub.org

http://www.ptcruiserclub.org/forum
Quote Reply
Re: [afinlr] Bug? In reply to
It should be fixed on this forum now - I can confirm that adding the 'updateTab' Javascript above is the correct fix. This used to be in the editor.js file, but was removed in the updates to the new editor, and not added into include_post_html_common_write.html, where it needs to be (having it in editor.js won't work with the latest version).

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com