[gnome-web-www] Remember also Jabber state
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] Remember also Jabber state
- Date: Fri, 7 Jun 2019 08:51:53 +0000 (UTC)
commit 2dd5b388cc267d498a8aed0dcc7fc60c4ea246ea
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Fri Jun 7 10:51:39 2019 +0200
Remember also Jabber state
theme/page-apply.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index c71a26c..086427f 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -17,7 +17,7 @@ if (array_key_exists('submit', $_POST)) {
$summary = trim(stripslashes($_POST['summary']));
$gnome_mail_alias = $_POST['gnome_mail_alias'];
$gnome_username= trim(stripslashes($_POST['gnome_username']));
- $gnome_jabber = trim(stripslashes($_POST['gnome_jabber']));
+ $gnome_jabber = $_POST['gnome_jabber'];
$references = trim(stripslashes($_POST['references']));
if ($not_spam != 'not spam') {
@@ -44,7 +44,7 @@ if (array_key_exists('submit', $_POST)) {
"Benefits\n" .
"Mail alias: " . (isset($gnome_mail_alias) ? "Yes" : "No") . "\n".
"Mail alias username: " . (isset($gnome_mail_alias) ? $gnome_username : "Not applicable") . "\n".
- "Jabber Account: " . ($gnome_jabber == 'on' ? "Yes" : "No") . "\n\n" .
+ "Jabber Account: " . (isset($gnome_jabber) ? "Yes" : "No") . "\n\n" .
"Contributions Summary:\n" .
$summary . "\n\n" .
@@ -143,7 +143,7 @@ if (array_key_exists('submit', $_POST)) {
</div>
<div class="item benefits">
- <input name="gnome_jabber" id="gnome_jabber" type="checkbox" disabled value="<?php echo $gnome_jabber
;?>" />
+ <input name="gnome_jabber" id="gnome_jabber" type="checkbox" <?php echo ( isset($gnome_jabber)?
"checked" : isset($gnome_mail_alias)? '' : 'disabled' ) ;?> />
<span name="jabber_label" id="jabber_label" class="disabled-checkbox">Jabber account <em>(only if you
adopt a @gnome.org mail alias)</em></span>
</div>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]