Opened 17 years ago
Closed 9 years ago
#6525 closed enhancement (wontfix)
Disable Submit Ticket Button
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | consider |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be a nice idea to disable the Submit ticket button until the Preview button has been clicked. This is similar to editing wikipedia pages and may prevent to many errors in tickets.
Attachments (0)
Change History (11)
follow-up: 3 comment:1 by , 17 years ago
Keywords: | consider added |
---|---|
Milestone: | → 0.12 |
comment:2 by , 17 years ago
Ah yes, forgot to mention that the patch is trivial, in case you want to do it for your Trac:
-
trac/ticket/templates/ticket.html
379 379 <input type="hidden" name="cnum" value="${cnum}" /> 380 380 </py:if> 381 381 <input type="submit" name="preview" value="Preview" accesskey="r" /> 382 <input type="submit" value="${ticket.exists and 'Submit changes' or 'Create ticket'}" />382 <input py:if="preview_mode" type="submit" value="${ticket.exists and 'Submit changes' or 'Create ticket'}" /> 383 383 384 384 </div> 385 385
comment:3 by , 17 years ago
Replying to cboos:
Opinions?
Maybe through a site-wide configuration option, although as cmlenz and other people have noticed, there are already a bazillion of config options. I've had already implemented something similar for the wiki page edition, to force people to add a comment to their changes, and limit the "save to preview" syndrome.
It can really be useful, so I'm +1 - but fear the config option monster…
follow-up: 5 comment:4 by , 17 years ago
Well, I think this ticket is more about deciding if it's worth changing the current behavior rather than to introduce a config option (not that I'm generally against choice, but in this case I think a config option is overkill).
comment:5 by , 17 years ago
Replying to cboos:
Well, I think this ticket is more about deciding if it's worth changing the current behavior rather than to introduce a config option (not that I'm generally against choice, but in this case I think a config option is overkill).
At least, it should be consistent with other preview/save edition modes in other Trac pages, such as the wiki.
comment:6 by , 16 years ago
Cc: | added |
---|
This could also prevent some of the problems described in #454.
comment:7 by , 12 years ago
Hi,
i wan´t to add another submit button in template for Create and Accept button - when creating a new ticket
Can anyone help me?
comment:8 by , 12 years ago
Cc: | removed |
---|
comment:9 by , 11 years ago
There is a related issue with the "automatic preview" when writing comments. On slow connections/servers the preview might take a few seconds. Sometimes, when clicking "Submit changes" while the "automatic preview" is being fetched, the click on "Submit changes" is lost (and you find yourself wondering why nothing is happening a while later).
Are other users experiencing this? It could be just specific browsers (I regularly use Opera and FF).
comment:10 by , 9 years ago
Owner: | removed |
---|
comment:11 by , 9 years ago
Milestone: | next-major-releases |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This can easily be implemented using JavaScript added through site.html
(see TracInterfaceCustomization#SiteAppearance). I suspect we would have too many complaints if we changed the behavior now to force a preview. See also th:ForceCommentPlugin.
Interesting idea, I wondered what to do about that myself at times.
The pros:
The cons:
Opinions?