Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
ACF5 Image selection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
funkjedi committed Oct 26, 2016
1 parent 3c24c59 commit 804191b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion acf-qtranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Advanced Custom Fields: qTranslate
Plugin URI: http://github.com/funkjedi/acf-qtranslate
Description: Provides multilingual versions of the text, text area, and wysiwyg fields.
Version: 1.7.12
Version: 1.7.13
Author: funkjedi
Author URI: http://funkjedi.com
License: GPLv2 or later
Expand Down
17 changes: 8 additions & 9 deletions assets/acf_5/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ acf.fields.qtranslate_image = acf.fields.image.extend({
type: 'qtranslate_image',
focus: function() {
this.$el = this.$field.find('.acf-image-uploader.current-language');
this.$input = this.$el.find('[data-name="id"]');
this.$img = this.$el.find('[data-name="image"]');
this.$input = this.$el.find('input[type="hidden"]');
this.$img = this.$el.find('img');

this.o = acf.get_data(this.$el);
}
Expand All @@ -17,14 +17,13 @@ acf.fields.qtranslate_image = acf.fields.image.extend({
* Clone functionality from standard File field type
*/
acf.fields.qtranslate_file = acf.fields.file.extend({
type: 'qtranslate_file',
focus: function() {
this.$el = this.$field.find('.acf-file-uploader.current-language');
this.$input = this.$el.find('[data-name="id"]');
this.$img = this.$el.find('[data-name="file"]');
type: 'qtranslate_file',
focus: function() {
this.$el = this.$field.find('.acf-file-uploader.current-language');
this.$input = this.$el.find('input[type="hidden"]');

this.o = acf.get_data(this.$el);
}
this.o = acf.get_data(this.$el);
}
});

/**
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ Contributors: funkjedi
Tags: acf, advanced custom fields, qtranslate, add-on, admin
Requires at least: 3.5.0
Tested up to: 4.2.1
Version: 1.7.12
Stable tag: 1.7.12
Version: 1.7.13
Stable tag: 1.7.13
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -59,6 +59,9 @@ The plugin is based on code samples posted to the ACF support forums by taeo bac

== Changelog ==

= 1.7.13 =
* Bug Fix: ACF5 Image selection fix

= 1.7.12 =
* Bug Fix: Fixed ACF5 Image/File edit and delete buttons

Expand Down

0 comments on commit 804191b

Please sign in to comment.