mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Check field type before inserting username
git-svn-id: file:///svn/phpbb/trunk@2769 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
5c6cbb56fc
commit
36319544af
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
<!--
|
<!--
|
||||||
function refresh_username(selected_username)
|
function refresh_username(selected_username)
|
||||||
{
|
{
|
||||||
opener.document.forms[0].{S_FIELD_NAME}.value += ( opener.document.forms[0].{S_FIELD_NAME}.value.length ) ? "\n" + selected_username : selected_username;
|
opener.document.forms[0].{S_FIELD_NAME}.value = ( opener.document.forms[0].{S_FIELD_NAME}.value.length && opener.document.forms[0].{S_FIELD_NAME}.type == "textarea" ) ? opener.document.forms[0].{S_FIELD_NAME}.value + "\n" + selected_username : selected_username;
|
||||||
}
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Reference in a new issue