After saving form(without reloading page), closing dhtmlxwindow and opening new, all selects are emtpy.
select should get data from db but its working only once.
i removed selects and it still not working. i cant insert more than 1 row without refreshing page.
my bad
i overrided onClose event, so i didnt close windows
you should add onBeforeClose event, i had to look into source of original function and add this to my function
If you need to reset form, you can call
form.clear();
as result it will be in insert mode again