From 952b3458834811f4f55fa7249c6212ea23f6ed37 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Fri, 17 Apr 2015 13:24:02 -0400 Subject: [PATCH] FIX: Focus was being lost on error message popup when composing failed --- app/assets/javascripts/discourse/controllers/composer.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6 index 2159633fcfc..caf3632ee11 100644 --- a/app/assets/javascripts/discourse/controllers/composer.js.es6 +++ b/app/assets/javascripts/discourse/controllers/composer.js.es6 @@ -258,7 +258,7 @@ export default DiscourseController.extend({ } }).catch(function(error) { composer.set('disableDrafts', false); - bootbox.alert(error); + self.appEvents.one('composer:opened', () => bootbox.alert(error)); }); if (this.get('controllers.application.currentRouteName').split('.')[0] === 'topic' &&