Opened 11 years ago
Last modified 10 years ago
#11056 closed enhancement
Disable submit buttons if required items are not selected — at Version 2
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 1.1.2 |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description (last modified by )
A feature initially discussed in #10994 is to disable Remove selected items and Add attachment buttons if no items have been selected - table entries for the former and a file for the latter. The feature might be implemented for some additional buttons while working on this ticket. The initial patch can be seen in ticket:10994:t10994-r11508-1.patch. I'm targeting this to 1.0.2 per comment:9:ticket:10994.
Change History (3)
by , 11 years ago
Attachment: | t11056-r11682-1.patch added |
---|
comment:1 by , 11 years ago
t11056-r11682-1.patch applies behavior to the Add attachment (/attachment/*
), Change tickets (/query
), Install (/admin/general/plugin
) and Remove selected items (/admin/ticket/*
, /admin/versioncontrol/repository
, /admin/general/perm
) buttons.
One particular behavior worth pointing out is that by clicking on the labels for the Subject or Group all of the checkboxes in the row are toggled. This is a nice convenience, but unfortunately I can't see a way to make it more obvious to the user.
There are some other places that similar behavior could be implemented. I've opted not to include these in the patch because I couldn't convince myself that they would necessarily improve usability, but I'm hoping to hear additional opinions:
- /newticket: Disable Create ticket until at least one character has been entered in the Summary (or disable if summary is greater than
max_description_size
). - /search: Disable Search until at least
min_query_length
characters have been entered. - /milestone?action=new: Disable Add milestone until at least one character has been entered for the Name of the milestone field.
The general criteria I took when deciding where to implement the button disabling is to disable a button if the user could be redirected to an error page by not selecting an item before submitting.
comment:2 by , 11 years ago
Description: | modified (diff) |
---|---|
Summary: | Disable 'Apply Changes' and 'Add Attachment' button if no items selected → Disable submit buttons if required items are not selected |
Patch against r11682 of the trunk.