id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,branch,changelog,apichanges,internalchanges 11056,Disable submit buttons if required items are not selected,Ryan J Ollos ,Ryan J Ollos,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 [attachment:ticket:10994:t10994-r11508-1.patch]. I'm targeting this to [milestone:1.0.2] per comment:9:ticket:10994.,enhancement,closed,normal,1.1.2,general,,normal,fixed,,,,Submit buttons are disabled if the required items are not selected.,"To add a //datepicker// or //datetimepicker// to an element, add the `trac-datepicker` and `trac-datetimepicker` classes respectively, and add jQuery UI and add-ons to the page using `Chrome(self.env).add_jquery_ui(req)` in `process_request`. To disable a //submit// button associated with a set of checkboxes or a file selector, add the `trac-disable` class to the //submit// button and add the `trac-disable-determinant` class to each checkbox or the `file` element. In both cases there is no need to add any specific !JavaScript code to the page.",