Skip to content

Commit

Permalink
💩
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrammatiko committed Sep 3, 2016
1 parent 8fac83d commit 3c318fe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
JHtml::_('script', 'media/mediafield.min.js', false, true, false, false, true);
?>
<?php if ($showPreview && !$showAsTooltip) : ?>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>; height: <?php echo $previewHeight; ?>;"></div>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>px; max-height: <?php echo $previewHeight; ?>px;"></div>
<?php endif; ?>
<div class="input-prepend input-append">
<?php if ($showPreview && $showAsTooltip) : ?>
Expand Down
2 changes: 1 addition & 1 deletion media/media/js/mediafield.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
var imgPreview = new Image(this.options.previewWidth, this.options.previewHeight);
imgPreview.src = this.options.basepath + value;

this.$containerPreview.prepend($('<img>',{src: imgPreview.src}));
this.$containerPreview.html($('<img>',{src: imgPreview.src}));
}
} else {
// Reset tooltip and preview
Expand Down
2 changes: 1 addition & 1 deletion media/media/js/mediafield.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
JHtml::_('script', 'media/mediafield.min.js', false, true, false, false, true);
?>
<?php if ($showPreview && !$showAsTooltip) : ?>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>; height: <?php echo $previewHeight; ?>;"></div>
<div class="field-media-preview" style="width: <?php echo $previewWidth; ?>px; height: <?php echo $previewHeight; ?>px;"></div>
<?php endif; ?>
<div class="input-prepend input-append">
<?php if ($showPreview && $showAsTooltip) : ?>
Expand Down

0 comments on commit 3c318fe

Please sign in to comment.