bellroy / lesswrong

Less Wrong platform
http://lesswrong.org/
Other
45 stars 23 forks source link

Fix article edit form. #586

Closed jglamine closed 7 years ago

jglamine commented 7 years ago

Fixes #585

Right now, it's impossible to edit articles. A JavaScript error is thrown when the page loads, preventing the form's onsubmit handler from loading.

As a result, the 'submit' button posts to /submit (which does not exist) instead of making an xhr post to /api/submit.

jglamine commented 7 years ago

I've tested the following:

Everything looks good to go.

vipulnaik commented 7 years ago

Thanks for fixing this, @jglamine -- I really appreciate it.