changeset 41e80b350bec in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=41e80b350bec
description:
        Reject promise when selection is empty

        It is reject that must be called instead of fail which is to add a 
callback.
diffstat:

 src/common.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 8ac58de888aa -r 41e80b350bec src/common.js
--- a/src/common.js     Sat Oct 31 12:14:32 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