The problem is with script which on click in codebox selects everything inside.
In the beginning it was working fine, and the suddenly stoped working.
I have added this in veiwtopic_body.tpl, after line "<script>"
function select_text()
{
var content=eval("document.myform.field");
content.focus();
content.select();
}
{
var content=eval("document.myform.field");
content.focus();
content.select();
}
And in bbcode
<form method="post" action="" name="myform" >
<textarea name="field" rows="4" cols="40" onClick="select_text();">Click Inside the text area to select all
text within this form field </textarea>
</form>
<textarea name="field" rows="4" cols="40" onClick="select_text();">Click Inside the text area to select all
text within this form field </textarea>
</form>
It appears to me like that script isn't loading, could anything be blockin it?
In fresh instalation works fine.
--------
I just found out that problem begins when two posts are posted, and both call that javascript.
So in viewtopic_body.tpl is not good place to put it.
So where is best place to put that javascript?