Fossil SCM
For new subscribers, default all alert options to "on".
Commit
9c38803597cb5ac3812a4a4d1fa37389658edc05ec09e0ab2913b265d7a4538b
Parent
c931dd7b585ff74…
1 file changed
+9
+9
| --- src/email.c | ||
| +++ src/email.c | ||
| @@ -1227,10 +1227,19 @@ | ||
| 1227 | 1227 | style_footer(); |
| 1228 | 1228 | } |
| 1229 | 1229 | return; |
| 1230 | 1230 | } |
| 1231 | 1231 | style_header("Signup For Email Alerts"); |
| 1232 | + if( P("submit")==0 ){ | |
| 1233 | + /* If this is the first visit to this page (if this HTTP request did not | |
| 1234 | + ** come from a prior Submit of the form) then default all of the | |
| 1235 | + ** subscription options to "on" */ | |
| 1236 | + cgi_set_parameter_nocopy("sa","1",1); | |
| 1237 | + cgi_set_parameter_nocopy("sc","1",1); | |
| 1238 | + cgi_set_parameter_nocopy("st","1",1); | |
| 1239 | + cgi_set_parameter_nocopy("sw","1",1); | |
| 1240 | + } | |
| 1232 | 1241 | @ <p>To receive email notifications for changes to this |
| 1233 | 1242 | @ repository, fill out the form below and press "Submit" button.</p> |
| 1234 | 1243 | form_begin(0, "%R/subscribe"); |
| 1235 | 1244 | @ <table class="subscribe"> |
| 1236 | 1245 | @ <tr> |
| 1237 | 1246 |
| --- src/email.c | |
| +++ src/email.c | |
| @@ -1227,10 +1227,19 @@ | |
| 1227 | style_footer(); |
| 1228 | } |
| 1229 | return; |
| 1230 | } |
| 1231 | style_header("Signup For Email Alerts"); |
| 1232 | @ <p>To receive email notifications for changes to this |
| 1233 | @ repository, fill out the form below and press "Submit" button.</p> |
| 1234 | form_begin(0, "%R/subscribe"); |
| 1235 | @ <table class="subscribe"> |
| 1236 | @ <tr> |
| 1237 |
| --- src/email.c | |
| +++ src/email.c | |
| @@ -1227,10 +1227,19 @@ | |
| 1227 | style_footer(); |
| 1228 | } |
| 1229 | return; |
| 1230 | } |
| 1231 | style_header("Signup For Email Alerts"); |
| 1232 | if( P("submit")==0 ){ |
| 1233 | /* If this is the first visit to this page (if this HTTP request did not |
| 1234 | ** come from a prior Submit of the form) then default all of the |
| 1235 | ** subscription options to "on" */ |
| 1236 | cgi_set_parameter_nocopy("sa","1",1); |
| 1237 | cgi_set_parameter_nocopy("sc","1",1); |
| 1238 | cgi_set_parameter_nocopy("st","1",1); |
| 1239 | cgi_set_parameter_nocopy("sw","1",1); |
| 1240 | } |
| 1241 | @ <p>To receive email notifications for changes to this |
| 1242 | @ repository, fill out the form below and press "Submit" button.</p> |
| 1243 | form_begin(0, "%R/subscribe"); |
| 1244 | @ <table class="subscribe"> |
| 1245 | @ <tr> |
| 1246 |