From 290c461cd93747ba4e8bc704ce808d478253365e Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Sun, 12 May 2013 03:19:39 -0700 Subject: [PATCH] Wait until multi creation finishes before updating the frontend. This prevents displaying erroneously named multis. --- r2/r2/public/static/js/multi.js | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/public/static/js/multi.js b/r2/r2/public/static/js/multi.js index 99869fd57..c28ea300f 100644 --- a/r2/r2/public/static/js/multi.js +++ b/r2/r2/public/static/js/multi.js @@ -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') },