diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-24 18:23:39 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-24 18:23:39 +0200 |
commit | f7ab8065e88e0f8454b3d1426e149f104245fb3e (patch) | |
tree | 7ac743d2a7f8176c42d53b3277704da0b160eaf4 /static/script.js | |
parent | Button onclick now actually sends object. (diff) | |
download | calp-f7ab8065e88e0f8454b3d1426e149f104245fb3e.tar.gz calp-f7ab8065e88e0f8454b3d1426e149f104245fb3e.tar.xz |
Abandon UI changes if event create fails.
Diffstat (limited to 'static/script.js')
-rw-r--r-- | static/script.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/static/script.js b/static/script.js index 6cd6668d..ef71b6b8 100644 --- a/static/script.js +++ b/static/script.js @@ -318,6 +318,7 @@ async function create_event (event) { console.log(response); if (response.status < 200 || response.status >= 300) { alert(`HTTP error ${response.status}\n${response.statusText}`) + return; } let body = await response.text(); |