duckduckgo/community-platform — pull request #258 by MariagraziaAlastra (2014-10-27 14:05:01+00:00)
Title: Editable single IA Page

//cc @jbarrett @jdorweiler @russellholt
Created a separate endpoint and page for editing: /ia/edit/, and another endpoint for saving the edited data.

IAPageEdit.js has a save button which is disabled unless some field's text changes (I'm using the keydown event).
Clicking on the save button, if active, sends a POST request to ia/save, which updates the database with the new data for that IA (thanks @jbarrett for this) and returns to IAPageEdit.js.
If the POST request and the update went well, IAPageEdit.js will redirect to /ia/view/, as discussed with @russellholt.