Fixed #298 sending a form two times in popup
Merge branch '298_Popup-form'