/* * Tag picker - the "+" at the end of a record's tags, and "Assign Tags" in * a list's bulk Action menu. Replaces the Assign Tags modals. * * Opens a panel under the button (a sheet from the bottom on a phone) with * every tag this kind of record can have, ticked if it has it. Ticking or * unticking saves straight away through agent/ajax.php and the pills on the * page redraw from what the server sends back, so the list never reloads and * you can tick several in a row. Admins can type a new tag name and make it * on the spot; "Manage tags" goes to Admin > Tags. * * In bulk, a tag some of the selected records have shows a dash: ticking it * gives it to all of them, unticking takes it off all of them. * * Markup comes from tagPills() in functions/tags.php: *