changeset fb0737c25570 in sao:5.4
details: https://hg.tryton.org/sao?cmd=changeset;node=fb0737c25570
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 14100992f904 -r fb0737c25570 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
@@ -118,7 +118,7 @@
         }
         var prm = jQuery.Deferred();
         if (jQuery.isEmptyObject(values)) {
-            prm.fail();
+            prm.reject();
             return prm;
         }
         var keys = Object.keys(values).sort();

Reply via email to