Commit 7ea9dd3b141e70fbae2adb58c1733b039d453ba9
1 parent
2455edf8
promise
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
www/js/main.js
@@ -1389,7 +1389,6 @@ $(document).ready(function() | @@ -1389,7 +1389,6 @@ $(document).ready(function() | ||
1389 | 1389 | ||
1390 | $.ajax( | 1390 | $.ajax( |
1391 | { | 1391 | { |
1392 | - console.log('ajax test'); | ||
1393 | url: '/change_with_size', | 1392 | url: '/change_with_size', |
1394 | data : | 1393 | data : |
1395 | { | 1394 | { |
@@ -1498,6 +1497,9 @@ $(document).ready(function() | @@ -1498,6 +1497,9 @@ $(document).ready(function() | ||
1498 | error: function(e) | 1497 | error: function(e) |
1499 | { | 1498 | { |
1500 | console.info(e.responseText); | 1499 | console.info(e.responseText); |
1500 | + }, | ||
1501 | + always: function () { | ||
1502 | + console.log('ajax test'); | ||
1501 | } | 1503 | } |
1502 | }); | 1504 | }); |
1503 | }); | 1505 | }); |