diff options
| author | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-11-22 12:10:31 +0000 |
|---|---|---|
| committer | Dominik Dröscher <dhn2@users.sourceforge.net> | 2006-11-22 12:10:31 +0000 |
| commit | 69e33a9d7df3ec4795019623f462614f54095dfd (patch) | |
| tree | f2fdc9099250780075f5ec74e44613a20314ed56 /phpBB/styles | |
| parent | 2906dbdd8aa0a625a161821fc1a7d41bd0c438ef (diff) | |
| download | forums-69e33a9d7df3ec4795019623f462614f54095dfd.tar forums-69e33a9d7df3ec4795019623f462614f54095dfd.tar.gz forums-69e33a9d7df3ec4795019623f462614f54095dfd.tar.bz2 forums-69e33a9d7df3ec4795019623f462614f54095dfd.tar.xz forums-69e33a9d7df3ec4795019623f462614f54095dfd.zip | |
plop
git-svn-id: file:///svn/phpbb/trunk@6635 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles')
| -rw-r--r-- | phpBB/styles/subSilver/template/editor.js | 12 | ||||
| -rw-r--r-- | phpBB/styles/subSilver/template/posting_body.html | 2 |
2 files changed, 8 insertions, 6 deletions
diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index 8a641efe03..370e3c06ba 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -176,10 +176,13 @@ function insert_text(text, spaces, popup) /** * Add inline attachment at position */ -function attach_inline() +function attach_inline(index, filename, element) { - insert_text('[attachment=' + document.forms[form_name].elements['attachments'].value + ']' + document.forms[form_name].elements['attachments'].options[document.forms[form_name].elements['attachments'].selectedIndex].text + '[/attachment]'); - document.forms[form_name].elements[text_name].focus(); + insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); + if (element) + { + element.focus(); + } } /** @@ -561,5 +564,4 @@ function getCaretPosition(txtarea) } return (caretPos); -} - +}
\ No newline at end of file diff --git a/phpBB/styles/subSilver/template/posting_body.html b/phpBB/styles/subSilver/template/posting_body.html index a134d60b22..525639b3c5 100644 --- a/phpBB/styles/subSilver/template/posting_body.html +++ b/phpBB/styles/subSilver/template/posting_body.html @@ -307,7 +307,7 @@ function checkForm() <!-- IF S_INLINE_ATTACHMENT_OPTIONS --> <tr> <td class="row1"><b class="genmed">{L_ATTACHMENTS}:</b></td> - <td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select> <input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_inline();" /> + <td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select> <input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_form = document.forms[form_name].elements['attachments']; attach_inline(attach_form.value, attach_form.options[attach_form.selectedIndex].text, message);" /> </td> </tr> <!-- ENDIF --> |
