discourse/discourse — pull request #1717 by vikhyat (2013-12-04 12:59:08+00:00)
Title: Fix auto close topic modal when pressing enter

Currently if you hit enter after typing in a number in the auto close topic modal the page reloads and nothing else happens. This can be fixed by triggering the action on form submit rather than clicking on the button.

Doing a quick search suggests that there are seven other modals with the same problem. I'll take a look and make the same change to them if needed, and add to this pull request shortly.