forked from DGNum/gestioCOF
On renvoie les promesses
This commit is contained in:
parent
49ef8b3c15
commit
0221221d53
1 changed files with 2 additions and 2 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue