aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/quickreply_editor.html
diff options
context:
space:
mode:
authorHenry Sudhof <kellanved@phpbb.com>2009-11-16 11:02:28 +0000
committerHenry Sudhof <kellanved@phpbb.com>2009-11-16 11:02:28 +0000
commit2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca (patch)
tree689d516bf92417cedc6e87683a00d1331b51361c /phpBB/styles/prosilver/template/quickreply_editor.html
parentf59a9221e9db58761fb9f792c7e5d1ce3c0b52b3 (diff)
downloadforums-2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca.tar
forums-2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca.tar.gz
forums-2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca.tar.bz2
forums-2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca.tar.xz
forums-2ef4f51b4c9645834e9d6c0e5e45c1abc79cdaca.zip
#53905 - thanks DavidIQ
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10273 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles/prosilver/template/quickreply_editor.html')
-rw-r--r--phpBB/styles/prosilver/template/quickreply_editor.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/phpBB/styles/prosilver/template/quickreply_editor.html b/phpBB/styles/prosilver/template/quickreply_editor.html
index 1ec8e2b643..8b6aaa12bc 100644
--- a/phpBB/styles/prosilver/template/quickreply_editor.html
+++ b/phpBB/styles/prosilver/template/quickreply_editor.html
@@ -1,9 +1,13 @@
<script type="text/javascript">
// <![CDATA[
- function hide_qr()
+ function hide_qr(show)
{
dE('qr_editor_div');
dE('qr_showeditor_div');
+ if (show && document.getElementById('qr_editor_div').style.display != 'none')
+ {
+ document.getElementsByName('message')[0].focus();
+ }
return true;
}
@@ -62,7 +66,7 @@
<input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />&nbsp;
<input type="submit" accesskey="f" tabindex="6" name="full_editor" value="{L_FULL_EDITOR}" class="button2" />&nbsp;
</fieldset>
- <a href="" class="right-box up" onclick="hide_qr(); return false;" title="{L_COLLAPSE_QR}">{L_COLLAPSE_QR}</a>
+ <a href="" class="right-box up" onclick="hide_qr(false); return false;" title="{L_COLLAPSE_QR}">{L_COLLAPSE_QR}</a>
</div>
<span class="corners-bottom"><span></span></span></div>
</div>
@@ -71,7 +75,7 @@
<div class="content">
<fieldset class="submit-buttons">
- <input type="submit" name="show_qr" tabindex="1" class="button2" value="{L_SHOW_QR}" onclick="hide_qr();return false;"/>
+ <input type="submit" name="show_qr" tabindex="1" class="button2" value="{L_SHOW_QR}" onclick="hide_qr(true);return false;"/>
</fieldset>
</div>
<span class="corners-bottom"><span></span></span></div>