clafonta/Mockey — pull request #63 by lkb2k (2012-07-30 05:15:33+00:00)
Title: Fixing the ajax call for saving a scenario.

The redirect to the homepage was happening after the ajax call, since the ajax call is async, sometimes you can get redirected back to /home before the post to save the scenario has been executed.

Also, at the point where the push happens the variable 'tag' is undefined, I didn't dig too deeply, i just changed it to re-pull the input element from the dom.