Fossil SCM

For new subscribers, default all alert options to "on".

drh 2018-07-12 15:19 trunk
Commit 9c38803597cb5ac3812a4a4d1fa37389658edc05ec09e0ab2913b265d7a4538b
1 file changed +9
--- src/email.c
+++ src/email.c
@@ -1227,10 +1227,19 @@
12271227
style_footer();
12281228
}
12291229
return;
12301230
}
12311231
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
+ }
12321241
@ <p>To receive email notifications for changes to this
12331242
@ repository, fill out the form below and press "Submit" button.</p>
12341243
form_begin(0, "%R/subscribe");
12351244
@ <table class="subscribe">
12361245
@ <tr>
12371246
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button