hudmol/archivesspace — pull request #333 by payten (2013-03-18 22:03:42+00:00)
Title: Fix +1 submit for components

@marktriggs found this one.

The '+1' submit for components was not behaving well at all. The button action on the main form didn't work and the form submission didn't take into account the "plus_one" parameter as other implementations do - it instead relies on the javascript to load the new form once the form has been successfully submitted.

For the +1 submit, the controller still needs to return the recently saved form as the tree needs to access the node's title. After that has been set, the javascript adds a new node to the tree and the new form is loaded.