changeset c77c1dcc4ab0 in sao:5.0
details: https://hg.tryton.org/sao?cmd=changeset;node=c77c1dcc4ab0
description:
Reject promise when selection is empty
It is reject that must be called instead of fail which is to add a
callback.
(grafted from 41e80b350bec60453797a345ee1b7fcf5214b9fd)
diffstat:
src/common.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r cfab620f412d -r c77c1dcc4ab0 src/common.js
--- a/src/common.js Mon Nov 02 12:12:29 2020 +0100
+++ b/src/common.js Sat Oct 31 19:05:24 2020 +0100
@@ -107,7 +107,7 @@
}
var prm = jQuery.Deferred();
if (jQuery.isEmptyObject(values)) {
- prm.fail();
+ prm.reject();
return prm;
}
var keys = Object.keys(values).sort();