Added callback on form ubmit to dismiss modal
Merge pull request #857 from modilabs/dismiss_modal_on_submit

Added callback on form submit to dismiss modal