add ability to add and remove tags directly from snapshot list

This commit is contained in:
Nick Sweeting 2021-02-18 02:32:58 -05:00
parent c877d67e0c
commit 4e5671dda9
3 changed files with 114 additions and 44 deletions

View file

@ -1 +0,0 @@
actions_as_select

View file

@ -157,15 +157,15 @@
function fix_actions() {
var container = $('div.actions');
if (container.find('option').length < 10) {
container.find('label, button').hide();
if (container.find('select[name=action] option').length < 10) {
container.find('label:nth-child(1), button[value=0]').hide();
var buttons = $('<div></div>')
.prependTo(container)
.appendTo(container)
.css('display', 'inline')
.addClass('class', 'action-buttons');
container.find('option:gt(0)').reverse().each(function () {
container.find('select[name=action] option:gt(0)').reverse().each(function () {
const name = this.value
$('<button>')
.appendTo(buttons)