aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
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/includes
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/includes')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index 2f7c289653..1d428ce92e 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -1163,8 +1163,14 @@ function handle_message_list_actions(&$address_list, &$error, $remove_u, $remove
global $refresh, $submit, $preview;
- $refresh = $preview = true;
+ $refresh = true;
$submit = false;
+
+ // Preview is only true if there was also a message entered
+ if (request_var('message', ''))
+ {
+ $preview = true;
+ }
}
// Add User/Group [TO]