mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-10 14:44:18 +00: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>')
|
||||
.appendTo(buttons)
|
||||
.attr('name', this.value)
|
||||
.attr('type', 'button')
|
||||
.addClass('button')
|
||||
.text(this.text)
|
||||
.click(function () {
|
||||
.click(function (e) {
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
container.find('select')
|
||||
.find(':selected').attr('selected', '').end()
|
||||
.find('[value=' + this.name + ']').attr('selected', 'selected');
|
||||
.find(':selected').removeAttr('selected').end()
|
||||
.find('[value=' + name + ']').attr('selected', 'selected').click();
|
||||
$('#changelist-form button[name="index"]').click();
|
||||
document.querySelector('#logo').outerHTML = '<div class="loader"></div>'
|
||||
return false
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue