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:
parent
cc257e1f5c
commit
97715b33d5
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue