Skip to content

Commit

Permalink
Merge branch 'release/1.3.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Dec 4, 2017
2 parents e3a068e + 2e86c12 commit 0279ecc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# ImageOptimize Changelog

## 1.3.4 - 2017.12.03
### Changed
* Fixed an issue where selecting image variants would result in the wrong aspect ratio
* Changed the default image variant widths

## 1.3.3 - 2017.11.30
### Added
* Auto-purge remote Imgix image URLs when assets are changed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft3-imageoptimize",
"description": "Automatically create & optimize responsive image transforms, using either native Craft transforms or a service like Imgix, with zero template changes.",
"type": "craft-plugin",
"version": "1.3.3",
"version": "1.3.4",
"keywords": [
"craft",
"cms",
Expand Down
10 changes: 5 additions & 5 deletions src/assetbundles/optimizedimagesfield/dist/js/OptimizedImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @copyright Copyright (c) 2017 nystudio107
* @link https://nystudio107.com
* @package ImageOptimize
* @since 1.2.0ImageOptimizeOptimizedImages
* @since 1.2.0
*/

;(function ( $, window, document, undefined ) {
Expand Down Expand Up @@ -197,9 +197,9 @@ Craft.OptimizedImagesInput = Garnish.Base.extend(
$block.find('.io-custom-ar-wrapper').slideDown();
} else {
$block.find('.io-custom-ar-wrapper').slideUp();
field = $block.find('input')[1];
$(field).val(x);
field = $block.find('input')[2];
$(field).val(x);
field = $block.find('input')[3];
$(field).val(y);
}
});
Expand All @@ -210,15 +210,15 @@ Craft.OptimizedImagesInput = Garnish.Base.extend(
$block = $(this.$blockContainer.children()[0]).clone();
// Reset to default values
$block.find('.io-select-ar-box').each(function (index, value) {
if (index === 4) {
if (index === 0) {
$(value).addClass('io-selected-ar-box');
} else {
$(value).removeClass('io-selected-ar-box');
}
});
$block.find('.io-custom-ar-wrapper').hide();
field = $block.find('input')[0];
$(field).val(1170);
$(field).val(1200);
field = $block.find('input')[1];
$(field).val(16);
field = $block.find('input')[2];
Expand Down

0 comments on commit 0279ecc

Please sign in to comment.