mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-11 00:02:05 -05:00
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
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue