mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 04:48:53 +00:00
hopefully fixes bug #3135
git-svn-id: file:///svn/phpbb/trunk@6386 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
786b34e4d3
commit
2069aa0f83
2 changed files with 10 additions and 19 deletions
|
@ -226,7 +226,11 @@ function checkForm()
|
||||||
<td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
|
<td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><!-- BEGIN smiley --><a href="#" onclick="smiley('{smiley.A_SMILEY_CODE}'); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_DESC}" title="{smiley.SMILEY_DESC}" onclick="smiley('{smiley.A_SMILEY_CODE}'); return false" hspace="2" vspace="2" /></a> <!-- END smiley --></td>
|
<td align="center">
|
||||||
|
<!-- BEGIN smiley -->
|
||||||
|
<a href="#" onclick="smiley('{smiley.A_SMILEY_CODE}'); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_DESC}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
|
||||||
|
<!-- END smiley -->
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<!-- IF S_SHOW_SMILEY_LINK -->
|
<!-- IF S_SHOW_SMILEY_LINK -->
|
||||||
|
|
|
@ -2,26 +2,13 @@
|
||||||
|
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
/**
|
|
||||||
* Apply clicked smiley to message body
|
|
||||||
*/
|
|
||||||
function smiley(text) {
|
|
||||||
text = ' ' + text + ' ';
|
|
||||||
|
|
||||||
if (opener.document.forms['post'].message.createTextRange && opener.document.forms['post'].message.caretPos)
|
var form_name = 'post';
|
||||||
{
|
var text_name = 'message';
|
||||||
var caretPos = opener.document.forms['post'].message.caretPos;
|
|
||||||
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
|
|
||||||
opener.document.forms['post'].message.focus();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
opener.document.forms['post'].message.value += text;
|
|
||||||
opener.document.forms['post'].message.focus();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
<script language="javascript" type="text/javascript" src="{T_TEMPLATE_PATH}/editor.js"></script>
|
||||||
|
|
||||||
<table width="100%" cellspacing="1" cellpadding="4" border="0">
|
<table width="100%" cellspacing="1" cellpadding="4" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -31,7 +18,7 @@ function smiley(text) {
|
||||||
<th>{L_SMILIES}</th>
|
<th>{L_SMILIES}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" align="center" valign="middle"><!-- BEGIN smiley --> <a href="#" onclick="smiley('{smiley.A_SMILEY_CODE}'); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_DESC}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" onclick="smiley('{smiley.A_SMILEY_CODE}');return false" /></a> <!-- END smiley --><br /><a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a></td>
|
<td class="row1" align="center" valign="middle"><!-- BEGIN smiley --> <a href="#" onclick="smiley('{smiley.A_SMILEY_CODE}'); return false;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_DESC}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a> <!-- END smiley --><br /><a class="nav" href="#" onclick="window.close(); return false;">{L_CLOSE_WINDOW}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Add table
Reference in a new issue