alert auto closes even with autoClose=false

I am on Ent v12 working to get to v14 (hopefully by end of next month).

I have a simple alert in my controller:

app.alert.show('case_quote_exists',{
  level: 'confirmation',
  messages: 'The selected Quote is already related to case '+ case_number,
  autoClose: 'false',
  onConfirm: function(){
    alert("Confirmed!");
  },
  onCancel: function(){
    alert("Cancelled!");
  }
});

But the alert popup closed before one can make a choice, in spite of the autoClose: 'false'.

Any thoughts? 

Thanks,
FrancescaS

Parents
  • Hello Francesca, 

    I wonder if the issue is I due to how the autoClose option is being set.
    In your current code, autoClose is being passed as a string ('false'), but on Sugar core code I see it being passed as boolean (false without quotes).

    autoClose: false,


    I had a try locally and removing the quotes seems to fix the issue. 
    Can you try and let us know? 

    Cheers, 

    André 



Reply
  • Hello Francesca, 

    I wonder if the issue is I due to how the autoClose option is being set.
    In your current code, autoClose is being passed as a string ('false'), but on Sugar core code I see it being passed as boolean (false without quotes).

    autoClose: false,


    I had a try locally and removing the quotes seems to fix the issue. 
    Can you try and let us know? 

    Cheers, 

    André 



Children