From 7ea9dd3b141e70fbae2adb58c1733b039d453ba9 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 11 Jan 2017 13:31:50 +0200 Subject: [PATCH] promise --- www/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/js/main.js b/www/js/main.js index 5e0d196..500a0d5 100644 --- a/www/js/main.js +++ b/www/js/main.js @@ -1389,7 +1389,6 @@ $(document).ready(function() $.ajax( { - console.log('ajax test'); url: '/change_with_size', data : { @@ -1498,6 +1497,9 @@ $(document).ready(function() error: function(e) { console.info(e.responseText); + }, + always: function () { + console.log('ajax test'); } }); }); -- libgit2 0.21.4