On the late orders page, the "Export" and "Claim" controls should be disabled when there are no orders have their checkboxes checked.
Created attachment 192542 [details] [review] Bug 41779: Late orders: disable batch controls if no checkboxes are checked This patch adds JavaScript which changes the enabled or disabled state of the batch controls on the late orders page: "Export as CSV" and "Claim order." To test you must have more than one late order. - Apply the patch and go to Acquisitions -> Late orders. - At the bottom of the table of late orders you should see the "Export as CSV" and "Claim order" buttons and they should be disabled. - Try checking and unchecking boxes, and confirm that the controls are enabled and disabled as they should be. - Filter your list of late orders by vendor using the filter form in the sidebar. - Test that the "Check all" and "Uncheck all" controls above the table. The batch controls should be enabled and disabled correctly. Sponsored-by: Athens County Public Libraries
Created attachment 192583 [details] [review] Bug 41779: Late orders: disable batch controls if no checkboxes are checked This patch adds JavaScript which changes the enabled or disabled state of the batch controls on the late orders page: "Export as CSV" and "Claim order." To test you must have more than one late order. - Apply the patch and go to Acquisitions -> Late orders. - At the bottom of the table of late orders you should see the "Export as CSV" and "Claim order" buttons and they should be disabled. - Try checking and unchecking boxes, and confirm that the controls are enabled and disabled as they should be. - Filter your list of late orders by vendor using the filter form in the sidebar. - Test that the "Check all" and "Uncheck all" controls above the table. The batch controls should be enabled and disabled correctly. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com>