From 5e80077fae6495901e9c7576995ded06a1dde5c8 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 12 Jan 2015 12:52:40 +0200 Subject: client/server: login is using POST, so use POST, not XMLHttpRequest TODO: Logout requires styling plus only to appear if logged in. --- src/client/buttons.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/client') diff --git a/src/client/buttons.js b/src/client/buttons.js index e29a1729..5fd8d121 100644 --- a/src/client/buttons.js +++ b/src/client/buttons.js @@ -67,11 +67,6 @@ $('.local-storage-load a').click(function(){ rz_core.load_from_json(json_blob); }); -var logout_button = $('#logout-button'); -logout_button.click(function() { - $.ajax({ type: "POST", url: '/logout'}); // server should redirect back to /login -}); - $('a.save-history').click(function() { if (rz_core.main_graph.history === undefined) { throw "History is undefined"; -- cgit v1.3.1