summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-09-18 21:24:33 +0300
committerKaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>2013-09-18 21:24:44 +0300
commit997839c6b1df18db9d17cc0d279d4381a776a762 (patch)
tree14314a4c7abd9b4835404015a13e78f9263943b9 /web
parent3f0ee72988ee24c4f701b0152bac537d6dea586a (diff)
downloadaconf-997839c6b1df18db9d17cc0d279d4381a776a762.tar.bz2
aconf-997839c6b1df18db9d17cc0d279d4381a776a762.tar.xz
web client: do not wait for completion of transaction abort request
Diffstat (limited to 'web')
-rw-r--r--web/client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/client.js b/web/client.js
index 1493ee6..7f779f6 100644
--- a/web/client.js
+++ b/web/client.js
@@ -92,9 +92,8 @@ $(function() {
}
function abort() {
- var def = request("/transaction", {type: "DELETE"});
+ request("/transaction", {type: "DELETE"});
reset();
- return def;
}
function objRequest(path, options) {
@@ -794,7 +793,8 @@ $(function() {
})
});
$("#revert").click(function() {
- txnMgr.abort().always(clearState);
+ txnMgr.abort();
+ clearState();
});
$("#logout").click(function() {