[gnome-web-www] Also check the POST value in order for the field to remain editable even after an error is found and
- From: Andrea Veri <averi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-web-www] Also check the POST value in order for the field to remain editable even after an error is found and
- Date: Thu, 6 Jun 2019 19:26:02 +0000 (UTC)
commit 4e5be0c60c5c6e1e8a36a85f2e10638b0f8ccc73
Author: Andrea Veri <av gnome org>
Date: Thu Jun 6 19:25:57 2019 +0000
Also check the POST value in order for the field to remain editable even after an error is found and
reported
theme/page-apply.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/theme/page-apply.php b/theme/page-apply.php
index ef0110a..492b456 100644
--- a/theme/page-apply.php
+++ b/theme/page-apply.php
@@ -103,8 +103,8 @@ if (array_key_exists('submit', $_POST)) {
function toggleBenefitsFields() {
var gnomeAlias = document.getElementById("gnome_mail_alias");
- document.getElementById("gnome_username").disabled = !gnomeAlias.checked;
- document.getElementById("gnome_jabber").disabled = !gnomeAlias.checked;
+ document.getElementById("gnome_username").disabled = (!gnomeAlias.checked || !isset($gnome_mail_alias)) ;
+ document.getElementById("gnome_jabber").disabled = (!gnomeAlias.checked || !isset($gnome_mail_alias));
document.getElementById("jabber_label").className = (gnomeAlias.checked ? "" : "disabled-checkbox");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]