Prevent the importFromURL button from submitting the form.
This commit is contained in:
parent
3b62968dd7
commit
8d265c400c
@ -272,6 +272,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
FC.importCardSetFromURL = function(ev) {
|
FC.importCardSetFromURL = function(ev) {
|
||||||
|
ev.preventDefault();
|
||||||
|
|
||||||
fetch(FC.$('input[name=importURL]').value)
|
fetch(FC.$('input[name=importURL]').value)
|
||||||
.then(resp => resp.json())
|
.then(resp => resp.json())
|
||||||
.then(set => {
|
.then(set => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user