Version Description
- Fixed an issue causing a php warning when editing custom fields
- Fixed a js-issue causing image-crop-field hiding all subfields when editing repeater-/flexible content-fields
Download this release
Release Info
Developer | andersthorborg |
Plugin | Advanced Custom Fields: Image Crop Add-on |
Version | 1.1.4 |
Comparing to | |
See all releases |
Code changes from version 1.1.3 to 1.1.4
- acf-image-crop-v5.php +1 -1
- acf-image-crop.php +1 -1
- js/options.js +7 -3
- readme.txt +5 -1
acf-image-crop-v5.php
CHANGED
@@ -689,7 +689,7 @@ class acf_field_image_crop extends acf_field_image {
|
|
689 |
|
690 |
$dir = plugin_dir_url( __FILE__ );
|
691 |
|
692 |
-
wp_register_script('acf-input-image-crop-options', "{$dir}js/options.js", array('jquery')
|
693 |
wp_enqueue_script( 'acf-input-image-crop-options');
|
694 |
|
695 |
wp_register_style('acf-input-image-crop-options', "{$dir}css/options.css");
|
689 |
|
690 |
$dir = plugin_dir_url( __FILE__ );
|
691 |
|
692 |
+
wp_register_script('acf-input-image-crop-options', "{$dir}js/options.js", array('jquery'));
|
693 |
wp_enqueue_script( 'acf-input-image-crop-options');
|
694 |
|
695 |
wp_register_style('acf-input-image-crop-options', "{$dir}css/options.css");
|
acf-image-crop.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Advanced Custom Fields: Image Crop Add-on
|
4 |
Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
|
5 |
Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
|
6 |
-
Version: 1.1.
|
7 |
Author: Anders Thorborg
|
8 |
Author URI: http://thorb.org
|
9 |
License: GPLv2 or later
|
3 |
Plugin Name: Advanced Custom Fields: Image Crop Add-on
|
4 |
Plugin URI: https://github.com/andersthorborg/ACF-Image-Crop
|
5 |
Description: An image field making it possible/required for the user to crop the selected image to the specified image size or dimensions
|
6 |
+
Version: 1.1.4
|
7 |
Author: Anders Thorborg
|
8 |
Author URI: http://thorb.org
|
9 |
License: GPLv2 or later
|
js/options.js
CHANGED
@@ -4,7 +4,7 @@ jQuery(function($){
|
|
4 |
toggleCustomDimensions(this);
|
5 |
});
|
6 |
$('.field_type-image_crop .save-in-media-library-select input').each(function() {
|
7 |
-
console.log(this);
|
8 |
toggleSaveFormats(this);
|
9 |
});
|
10 |
});
|
@@ -51,10 +51,14 @@ jQuery(function($){
|
|
51 |
|
52 |
function toggleCustomDimensions(targetSizeSelect){
|
53 |
if($(targetSizeSelect).val() == 'custom'){
|
54 |
-
$(targetSizeSelect).parents('.field_type-image_crop').find('.custom-target-dimension').
|
|
|
|
|
55 |
}
|
56 |
else{
|
57 |
-
$(targetSizeSelect).parents('.field_type-image_crop').find('.custom-target-dimension').
|
|
|
|
|
58 |
}
|
59 |
}
|
60 |
|
4 |
toggleCustomDimensions(this);
|
5 |
});
|
6 |
$('.field_type-image_crop .save-in-media-library-select input').each(function() {
|
7 |
+
//console.log(this);
|
8 |
toggleSaveFormats(this);
|
9 |
});
|
10 |
});
|
51 |
|
52 |
function toggleCustomDimensions(targetSizeSelect){
|
53 |
if($(targetSizeSelect).val() == 'custom'){
|
54 |
+
$(targetSizeSelect).parents('.field_type-image_crop').first().find('.custom-target-dimension').each(function(){
|
55 |
+
$(this).parents('tr.acf-field').first().removeClass('hidden');
|
56 |
+
});
|
57 |
}
|
58 |
else{
|
59 |
+
$(targetSizeSelect).parents('.field_type-image_crop').first().find('.custom-target-dimension').each(function(){
|
60 |
+
$(this).parents('tr.acf-field').first().addClass('hidden');
|
61 |
+
});
|
62 |
}
|
63 |
}
|
64 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: andersthorborg
|
|
3 |
Tags: afc, advanced custom fields, image crop, image, crop
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.9.1
|
6 |
-
Stable tag: 1.1.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -61,6 +61,10 @@ function my_register_fields()
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
64 |
= 1.1.3 =
|
65 |
* Fixed another issue with save to media option
|
66 |
|
3 |
Tags: afc, advanced custom fields, image crop, image, crop
|
4 |
Requires at least: 3.5
|
5 |
Tested up to: 3.9.1
|
6 |
+
Stable tag: 1.1.4
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.1.4 =
|
65 |
+
* Fixed an issue causing a php warning when editing custom fields
|
66 |
+
* Fixed a js-issue causing image-crop-field hiding all subfields when editing repeater-/flexible content-fields
|
67 |
+
|
68 |
= 1.1.3 =
|
69 |
* Fixed another issue with save to media option
|
70 |
|