Revert "Fix #1 for ajax submit"

This reverts commit feb5f3f6798784d1bacf04f2e2021cd6bae0d867.
Fix №1 for ajax submit