0

I've got an ajax call happening that has a $prompt dialog open. I want to close that dialog and put up another one. How can I do that?

            if (dataNew.Message && dataNew.Message.length > 0) {
                $.prompt.close();
                $.prompt("Problem", dataNew.Message);
            } 

The above does not work. The original dialog stays open.

Peter Kellner
  • 14,748
  • 25
  • 102
  • 188
  • 1
    More an observation as I was unable to recreate your issue. Are you not passing the params incorrectly? - ie {message: dataNew.Message}. It makes me wonder how you are initializing the other. From here- http://trentrichardson.com/Impromptu/ – dmoo Jul 30 '16 at 19:05
  • After more thinking about it, I don't really want to close the prompt, changing state makes more sense. Just wrapping my head around that. -thanks – Peter Kellner Aug 01 '16 at 16:51

0 Answers0