Precondition: first modal window is opened.
It has ajax submit form inside.
After submitting form inside modal I want to open another modal with another content.
I debugged wicket ajax response and found,
that script, witch should close first window, closes second instead.
I attached wicket-ajax-response.js to demonstrate the problem.
wicket ajax engine correct runs those two functions, but "win.current.close();" at line 16
actually closes second window, opened at line 40.