From 66be9147a05898e9efab13b3afb705b30ec2dd7b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 20 Apr 2015 16:49:11 -0400 Subject: [PATCH] FIX: You can edit two queued posts simultaneously --- .../javascripts/discourse/controllers/queued-post.js.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/queued-post.js.es6 b/app/assets/javascripts/discourse/controllers/queued-post.js.es6 index a64cd8b25b2..47ac01a0063 100644 --- a/app/assets/javascripts/discourse/controllers/queued-post.js.es6 +++ b/app/assets/javascripts/discourse/controllers/queued-post.js.es6 @@ -22,7 +22,9 @@ export default Ember.Controller.extend(BufferedContent, { reject: updateState('rejected'), edit() { - this.set('currentlyEditing', this.get('model')); + // This is stupid but pagedown cannot be on the screen twice or it will break + this.set('currentlyEditing', null); + Ember.run.scheduleOnce('afterRender', () => this.set('currentlyEditing', this.get('model'))); }, confirmEdit() {