FIX: ensureMaximumDimensionForImagesInPreview wasn't always working

This commit is contained in:
Régis Hanol 2013-12-17 17:20:06 +01:00
parent 2ef53f89f4
commit 76c246664d
1 changed files with 2 additions and 2 deletions

View File

@ -122,8 +122,8 @@ Discourse.ComposerView = Discourse.View.extend(Ember.Evented, {
ensureMaximumDimensionForImagesInPreview: function() {
$('<style>#wmd-preview img, .cooked img {' +
'max-width:' + Discourse.SiteSettings.max_image_width + 'px;' +
'max-height:' + Discourse.SiteSettings.max_image_height + 'px;' +
'max-width:' + Discourse.SiteSettings.max_image_width + 'px!important;' +
'max-height:' + Discourse.SiteSettings.max_image_height + 'px!important;' +
'}</style>'
).appendTo('head');
},