Fossil SCM
Update the default new-ticket and edit-ticket scripts so that the Submit button is still shown after a prior submit attempt where the captcha failed.
Commit
28faff0d6a11bc2d35dbe378d1339d0640a96412
Parent
ee40fcb448646ee…
1 file changed
+2
+2
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -301,10 +301,11 @@ | ||
| 301 | 301 | @ set mimetype "text/x-fossil-plain" |
| 302 | 302 | @ } else { |
| 303 | 303 | @ set mimetype "text/plain" |
| 304 | 304 | @ } |
| 305 | 305 | @ submit_ticket |
| 306 | +@ set preview 1 | |
| 306 | 307 | @ } |
| 307 | 308 | @ </th1> |
| 308 | 309 | @ <h1 style="text-align: center;">Enter A New Ticket</h1> |
| 309 | 310 | @ <table cellpadding="5"> |
| 310 | 311 | @ <tr> |
| @@ -567,10 +568,11 @@ | ||
| 567 | 568 | @ set mimetype text/x-fossil-plain |
| 568 | 569 | @ } else { |
| 569 | 570 | @ set mimetype text/plain |
| 570 | 571 | @ } |
| 571 | 572 | @ submit_ticket |
| 573 | +@ set preview 1 | |
| 572 | 574 | @ } |
| 573 | 575 | @ </th1> |
| 574 | 576 | @ <table cellpadding="5"> |
| 575 | 577 | @ <tr><td class="tktDspLabel">Title:</td><td> |
| 576 | 578 | @ <input type="text" name="title" value="$<title>" size="60" /> |
| 577 | 579 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -301,10 +301,11 @@ | |
| 301 | @ set mimetype "text/x-fossil-plain" |
| 302 | @ } else { |
| 303 | @ set mimetype "text/plain" |
| 304 | @ } |
| 305 | @ submit_ticket |
| 306 | @ } |
| 307 | @ </th1> |
| 308 | @ <h1 style="text-align: center;">Enter A New Ticket</h1> |
| 309 | @ <table cellpadding="5"> |
| 310 | @ <tr> |
| @@ -567,10 +568,11 @@ | |
| 567 | @ set mimetype text/x-fossil-plain |
| 568 | @ } else { |
| 569 | @ set mimetype text/plain |
| 570 | @ } |
| 571 | @ submit_ticket |
| 572 | @ } |
| 573 | @ </th1> |
| 574 | @ <table cellpadding="5"> |
| 575 | @ <tr><td class="tktDspLabel">Title:</td><td> |
| 576 | @ <input type="text" name="title" value="$<title>" size="60" /> |
| 577 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -301,10 +301,11 @@ | |
| 301 | @ set mimetype "text/x-fossil-plain" |
| 302 | @ } else { |
| 303 | @ set mimetype "text/plain" |
| 304 | @ } |
| 305 | @ submit_ticket |
| 306 | @ set preview 1 |
| 307 | @ } |
| 308 | @ </th1> |
| 309 | @ <h1 style="text-align: center;">Enter A New Ticket</h1> |
| 310 | @ <table cellpadding="5"> |
| 311 | @ <tr> |
| @@ -567,10 +568,11 @@ | |
| 568 | @ set mimetype text/x-fossil-plain |
| 569 | @ } else { |
| 570 | @ set mimetype text/plain |
| 571 | @ } |
| 572 | @ submit_ticket |
| 573 | @ set preview 1 |
| 574 | @ } |
| 575 | @ </th1> |
| 576 | @ <table cellpadding="5"> |
| 577 | @ <tr><td class="tktDspLabel">Title:</td><td> |
| 578 | @ <input type="text" name="title" value="$<title>" size="60" /> |
| 579 |