Script Summary: Changes the "Change Status" button to reflect what action it will take
Version: 1.1
The holds page of the Seattle Public Library website can be a little confusing to work with. Suppose you have an inactive hold, and you decide you want it to remain inactive but you want to change its activation date. The "Change Status" button does not just change the suspend date; instead, it toggles between Suspended and Active.
I got burned on this toggle-vs-set behavior, so I made a script that will tell me exactly what the button will be doing when clicked:
- When only suspended holds are selected, the button reads "Activate." This makes it clear that you can't just set a new date.
- When only active holds are selected, the button reads "Suspend."
- When both suspended and active holds are selected, the button turns read and warns "Mixed Status!" Clicking on the button in this case will toggle each hold independently, which is probably not what you were hoping for if you wanted to set all the holds to be inactive until the same date.
Changelog
- v1.1
- highlight selected row
- v1.0
- initial release



