FIX: Focus was being lost on error message popup when composing failed

This commit is contained in:
Robin Ward 2015-04-17 13:24:02 -04:00
parent 32365fbc58
commit 952b345883

View File

@ -258,7 +258,7 @@ export default DiscourseController.extend({
} }
}).catch(function(error) { }).catch(function(error) {
composer.set('disableDrafts', false); composer.set('disableDrafts', false);
bootbox.alert(error); self.appEvents.one('composer:opened', () => bootbox.alert(error));
}); });
if (this.get('controllers.application.currentRouteName').split('.')[0] === 'topic' && if (this.get('controllers.application.currentRouteName').split('.')[0] === 'topic' &&