#JC-1842: Changes in show modal window algorithm
* Add js variable to check to display modal message or not