Yes, solution was quite easy. Requests have to be asynchronous. Otherwise waiting for response blocks execution of JavaScript, what means that rendering BusDialog takes place after the request is finished (and it's closed immediately after). Thank you for your hints!
↧