mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
fix Snapshot admin actions buttons submitting on Safari
This commit is contained in:
parent
5a9f27204a
commit
68a506e1a7
1 changed files with 7 additions and 3 deletions
|
@ -148,14 +148,18 @@
|
||||||
$('<button>')
|
$('<button>')
|
||||||
.appendTo(buttons)
|
.appendTo(buttons)
|
||||||
.attr('name', this.value)
|
.attr('name', this.value)
|
||||||
|
.attr('type', 'button')
|
||||||
.addClass('button')
|
.addClass('button')
|
||||||
.text(this.text)
|
.text(this.text)
|
||||||
.click(function () {
|
.click(function (e) {
|
||||||
|
e.preventDefault()
|
||||||
|
e.stopPropagation()
|
||||||
container.find('select')
|
container.find('select')
|
||||||
.find(':selected').attr('selected', '').end()
|
.find(':selected').removeAttr('selected').end()
|
||||||
.find('[value=' + this.name + ']').attr('selected', 'selected');
|
.find('[value=' + name + ']').attr('selected', 'selected').click();
|
||||||
$('#changelist-form button[name="index"]').click();
|
$('#changelist-form button[name="index"]').click();
|
||||||
document.querySelector('#logo').outerHTML = '<div class="loader"></div>'
|
document.querySelector('#logo').outerHTML = '<div class="loader"></div>'
|
||||||
|
return false
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue