aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/posting_editor.html
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-08-30 17:50:11 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-08-30 17:50:11 +0000
commitbf1621c05dc8ea61dfeb3bfd6003640232ab0b3a (patch)
tree6afaaa9a38f16da7a92ebb07577d06f2d71440d1 /phpBB/styles/prosilver/template/posting_editor.html
parent3f22f755a3a3da4f711454e25772f13c42014ecc (diff)
downloadforums-bf1621c05dc8ea61dfeb3bfd6003640232ab0b3a.tar
forums-bf1621c05dc8ea61dfeb3bfd6003640232ab0b3a.tar.gz
forums-bf1621c05dc8ea61dfeb3bfd6003640232ab0b3a.tar.bz2
forums-bf1621c05dc8ea61dfeb3bfd6003640232ab0b3a.tar.xz
forums-bf1621c05dc8ea61dfeb3bfd6003640232ab0b3a.zip
Style authors are now able to define the default submit button used for form submission on ENTER keypress on forms using more than one. Prosilver uses this for the posting page(s) and registration screen.
(we further test this at phpbb.com) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10069 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/styles/prosilver/template/posting_editor.html')
-rw-r--r--phpBB/styles/prosilver/template/posting_editor.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html
index 81adebd206..9476242d11 100644
--- a/phpBB/styles/prosilver/template/posting_editor.html
+++ b/phpBB/styles/prosilver/template/posting_editor.html
@@ -1,3 +1,9 @@
+<script type="text/javascript">
+// <![CDATA[
+ onload_functions.push('apply_onkeypress_event()');
+// ]]>
+</script>
+
<fieldset class="fields1">
<!-- IF ERROR --><p class="error">{ERROR}</p><!-- ENDIF -->
@@ -184,7 +190,7 @@
<!-- IF S_HAS_DRAFTS --><input type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD}" class="button2" onclick="load_draft = true;" />&nbsp; <!-- ENDIF -->
<!-- IF S_SAVE_ALLOWED --><input type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE}" class="button2" />&nbsp; <!-- ENDIF -->
<input type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" class="button1"<!-- IF not S_PRIVMSGS --> onclick="document.getElementById('postform').action += '#preview';"<!-- ENDIF --> />&nbsp;
- <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1" />&nbsp;
+ <input type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" class="button1 default-submit-action" />&nbsp;
</fieldset>