Skip to content

Commit 6e19da2

Browse files
committed
use synchronous ajax in start.html script
1 parent d2b0643 commit 6e19da2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ceopardy.py

100644100755
+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
# Ceopardy
24
# https://github.com/obilodeau/ceopardy/
35
#

templates/start.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,16 @@
9999
dataType: 'json',
100100
success: function (data) {
101101
if (data.result == "success") {
102-
102+
location.reload();
103103
}
104104
else {
105105
console.log(data.error);
106106
e.preventDefault()
107107
}
108108
}
109109
});
110+
111+
return false;
110112
});
111113
</script>
112114
{% endblock %}

0 commit comments

Comments
 (0)