1

does anyone know how make a smoke.js return a value. For example if I select "OK" the value should return true, and if I select Cancel, the value should be false.

function check() {
if (smoke.confirm("Are you sure?", function (e) { })) {
      return true
   }
   return false;
}

I also tried this code. It output the value properly but it is not being return by the function

smoke.confirm("Are you sure?", function (e) {
  alert(e);
  return e;
});

Help please

Rey Norbert Besmonte
  • 791
  • 2
  • 12
  • 29

0 Answers0