From 0221221d539bd37340a76d76ad559623550319fe Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 23 Dec 2019 15:16:04 +0100 Subject: [PATCH] On renvoie les promesses --- kfet/static/kfet/js/history.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kfet/static/kfet/js/history.js b/kfet/static/kfet/js/history.js index 22aff4d6..5608c02f 100644 --- a/kfet/static/kfet/js/history.js +++ b/kfet/static/kfet/js/history.js @@ -206,7 +206,7 @@ function KHistory(options = {}) { this.fetch = function (fetch_options) { options = $.extend({}, this.fetch_options, fetch_options); var that = this; - $.ajax({ + return $.ajax({ dataType: "json", url: django_urls["kfet.history.json"](), method: "POST", @@ -223,7 +223,7 @@ function KHistory(options = {}) { return false window.lock = 1; var that = this; - $.ajax({ + return $.ajax({ dataType: "json", url: django_urls[`kfet.${type}s.cancel`](), method: "POST",