From d6c5be3d73e2c4f9017af9146270439da1e86364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Dr=C3=B6scher?= Date: Wed, 22 Nov 2006 12:20:17 +0000 Subject: [PATCH] blah git-svn-id: file:///svn/phpbb/trunk@6636 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/style/editor.js | 7 ++----- phpBB/styles/subSilver/template/editor.js | 7 ++----- phpBB/styles/subSilver/template/posting_body.html | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/phpBB/adm/style/editor.js b/phpBB/adm/style/editor.js index 370e3c06ba..f1ec2d1893 100644 --- a/phpBB/adm/style/editor.js +++ b/phpBB/adm/style/editor.js @@ -176,13 +176,10 @@ function insert_text(text, spaces, popup) /** * Add inline attachment at position */ -function attach_inline(index, filename, element) +function attach_inline(index, filename) { insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); - if (element) - { - element.focus(); - } + document.forms[form_name].elements[text_name].focus(); } /** diff --git a/phpBB/styles/subSilver/template/editor.js b/phpBB/styles/subSilver/template/editor.js index 370e3c06ba..f1ec2d1893 100644 --- a/phpBB/styles/subSilver/template/editor.js +++ b/phpBB/styles/subSilver/template/editor.js @@ -176,13 +176,10 @@ function insert_text(text, spaces, popup) /** * Add inline attachment at position */ -function attach_inline(index, filename, element) +function attach_inline(index, filename) { insert_text('[attachment=' + index + ']' + filename + '[/attachment]'); - if (element) - { - element.focus(); - } + document.forms[form_name].elements[text_name].focus(); } /** diff --git a/phpBB/styles/subSilver/template/posting_body.html b/phpBB/styles/subSilver/template/posting_body.html index 525639b3c5..1f523d012a 100644 --- a/phpBB/styles/subSilver/template/posting_body.html +++ b/phpBB/styles/subSilver/template/posting_body.html @@ -307,7 +307,7 @@ function checkForm() {L_ATTACHMENTS}: -   +