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

View file

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