Wait until multi creation finishes before updating the frontend.

This prevents displaying erroneously named multis.
This commit is contained in:
Max Goodman
2013-05-12 03:19:39 -07:00
parent 5cfb5fc4f9
commit 290c461cd9

View File

@@ -400,6 +400,7 @@ r.multi.ListingChooser = Backbone.View.extend({
name = $.trim(name)
if (name) {
r.multi.mine.create({name: name}, {
wait: true,
success: function(multi) {
window.location = multi.get('path')
},