Permalink
Browse files

fix basic controller popup promise resolution

  • Loading branch information...
VincentSchippefilt committed Nov 8, 2018
1 parent 797e10a commit fc531ae945b006221161dd7bbc5d02b2e7faaf3e
Showing with 2 additions and 2 deletions.
  1. +2 −2 addons/web/static/src/js/views/basic/basic_controller.js
@@ -78,8 +78,8 @@ var BasicController = AbstractController.extend(FieldManagerMixin, {
def = new Promise(function (resolve, reject) {
var dialog = Dialog.confirm(self, message, {
title: _t("Warning"),
confirm_callback: resolve(true),
cancel_callback: reject(),
confirm_callback: resolve.bind(self, true),
cancel_callback: reject,
});
dialog.on('closed', def, reject);
});

0 comments on commit fc531ae

Please sign in to comment.