FIX: Composer wasn't displaying errors correctly. The fix is a hack

around our weird view structure that we need to fix.
This commit is contained in:
Robin Ward 2014-06-05 17:06:17 -04:00
parent cc257e1f5c
commit 97715b33d5
1 changed files with 5 additions and 0 deletions

View File

@ -114,8 +114,13 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
}); });
Discourse.TransitionHelper.after($replyControl, this.resize); Discourse.TransitionHelper.after($replyControl, this.resize);
this.ensureMaximumDimensionForImagesInPreview(); this.ensureMaximumDimensionForImagesInPreview();
this.set('controller.view', this);
}.on('didInsertElement'), }.on('didInsertElement'),
_unlinkView: function() {
this.set('controller.view', null);
}.on('willDestroyElement'),
ensureMaximumDimensionForImagesInPreview: function() { ensureMaximumDimensionForImagesInPreview: function() {
// This enforce maximum dimensions of images in the preview according // This enforce maximum dimensions of images in the preview according
// to the current site settings. // to the current site settings.