From 94f070832c3cfdf51233136c0745b229ace3311a Mon Sep 17 00:00:00 2001 From: Claudio Barril Date: Tue, 9 Sep 2014 11:54:48 -0300 Subject: [PATCH] fix first save (wrong timestamp was being taken) --- mindplot/src/main/javascript/RestPersistenceManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mindplot/src/main/javascript/RestPersistenceManager.js b/mindplot/src/main/javascript/RestPersistenceManager.js index 22a586b4..1e04d51c 100644 --- a/mindplot/src/main/javascript/RestPersistenceManager.js +++ b/mindplot/src/main/javascript/RestPersistenceManager.js @@ -64,7 +64,7 @@ mindplot.RESTPersistenceManager = new Class({ async:!sync, success: function (data, textStatus, jqXHRresponseText) { - persistence.timestamp = jqXHRresponseText; + persistence.timestamp = data; events.onSuccess(); }, error: function (jqXHR, textStatus, errorThrown) { @@ -161,5 +161,3 @@ mindplot.RESTPersistenceManager = new Class({ } } ); - -