mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-31 06:48:25 -04:00
add ability to add and remove tags directly from snapshot list
This commit is contained in:
parent
c877d67e0c
commit
4e5671dda9
3 changed files with 114 additions and 44 deletions
|
@ -1 +0,0 @@
|
|||
actions_as_select
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue