mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
Tweak JS so Safari can choose admin actions
I noticed that Safari was submitting both the empty option and the selected options back to the server. Digging into it, I was able to get Safari to deselect the --------- option by using '[selected]' as the selector. For #658
This commit is contained in:
parent
b54076054c
commit
83731f5a68
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@
|
||||||
|
|
||||||
// select the action button from the dropdown
|
// select the action button from the dropdown
|
||||||
container.find('select[name=action]')
|
container.find('select[name=action]')
|
||||||
.find('op:selected').removeAttr('selected').end()
|
.find('[selected]').removeAttr('selected').end()
|
||||||
.find('[value=' + action_type + ']').attr('selected', 'selected').click()
|
.find('[value=' + action_type + ']').attr('selected', 'selected').click()
|
||||||
|
|
||||||
// click submit & replace the archivebox logo with a spinner
|
// click submit & replace the archivebox logo with a spinner
|
||||||
|
|
Loading…
Reference in a new issue