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

Commit

Permalink
Merge branch 'fburatti-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
funkjedi committed Oct 21, 2016
2 parents 6bcb276 + f061c30 commit 66a2d13
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions assets/acf_5/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ 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');
//add
this.$input = this.$el.find('[data-name="id"]');
this.o = acf.get_data(this.$el);
}
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"]');

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

/**
Expand Down

0 comments on commit 66a2d13

Please sign in to comment.