diff --git a/.wp-release-info.json b/.wp-release-info.json
index d3a6fd4..cdbeea4 100644
--- a/.wp-release-info.json
+++ b/.wp-release-info.json
@@ -1,9 +1,9 @@
{
"id": "https://github.com/mcguffin/acf-quickedit-fields/raw/master/.wp-release-info.json",
"slug": "acf-quickedit-fields",
- "version": "3.3.7",
+ "version": "3.3.8",
"url": "https://github.com/mcguffin/acf-quickedit-fields",
- "package": "https://github.com/mcguffin/acf-quickedit-fields/releases/download/3.3.7/acf-quickedit-fields.zip",
- "tested": "6.5",
+ "package": "https://github.com/mcguffin/acf-quickedit-fields/releases/download/3.3.8/acf-quickedit-fields.zip",
+ "tested": "6.7",
"requires_php": "7.2"
}
\ No newline at end of file
diff --git a/include/version.php b/include/version.php
index c53b7ce..e5fda09 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1 +1 @@
- #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap('
'),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap(''),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='").concat(n,"")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports=function(e,a){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this,n=a.extend({$input:function(){return this.$(".acf-input-wrap select")}});this.acfField=new n(this.$input.closest(".acf-field"));return _.isArray(e)?e.map(t):_.isObject(e)?t(e):(_.isNumber(e)||_.isString(e))&&this.$input.find('[value="'.concat(e,'"]')).length&&this.$input.val(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap(''),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
\ No newline at end of file
+!function n(a,d,o){function l(t,e){if(!d[t]){if(!a[t]){var i="function"==typeof require&&require;if(!e&&i)return i(t,!0);if(s)return s(t,!0);throw(e=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",e}i=d[t]={exports:{}},a[t][0].call(i.exports,function(e){return l(a[t][1][e]||e)},i,i.exports,n,a,d,o)}return d[t].exports}for(var s="function"==typeof require&&require,e=0;e #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap(''),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseDate(this.datePickerArgs.altFormat,e)}catch(e){return this}return this.$input.datepicker("setDate",t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],9:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"date_time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={altField:this.$hidden,dateFormat:this.$("[data-date_format]").data("date_format"),altFormat:"yy-mm-dd",timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altFieldTimeOnly:!1,changeYear:!0,yearRange:"-100:+100",changeMonth:!0,showButtonPanel:!0,firstDay:this.$("[data-first_day]").data("first_day"),controlType:"select",oneLine:!0},this.$input.datetimepicker(this.datePickerArgs).on("blur",function(){(0,n.default)(this).val()||e.$hidden.val("")}),0<(0,n.default)("body > #ui-datepicker-div").length&&(0,n.default)("#ui-datepicker-div").wrap(''),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t,i;this.dntChanged();try{t=n.default.datepicker.parseDateTime(this.datePickerArgs.altFormat,this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return i={hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisec:t.getMilliseconds(),microsec:0,timezone:t.getTimezoneOffset()},t=n.default.datepicker.formatDate(this.datePickerArgs.dateFormat,t)+" "+n.default.datepicker.formatTime(this.datePickerArgs.timeFormat,i),this.$hidden.val(e),this.$input.val(t),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],10:[function(e,n,t){!function(i){!function(){"use strict";var t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"file",mediaFrameType:"",events:{"click .select-media":"selectFile","click .remove-media":"removeFile"},initialize:function(){this.$input=this.$("button"),this.$hidden=this.$('[type="hidden"]'),this.$img=(0,t.default)("").prependTo(this.$(".file-content")),this.parent().initialize.apply(this,arguments);var i=this,e=acf.get("post_id");this.mediaFrameOpts={field:this.key,multiple:!1,post_id:e,library:this.$hidden.attr("data-library"),mode:"select",type:this.mediaFrameType,select:function(e,t){e&&i.setValue(e.get("id"))}},this.$hidden.data("mime_types")&&(this.mediaFrameOpts.mime_types=this.$hidden.data("mime_types"))},selectFile:function(e){e.preventDefault();var i=acf.media.popup(this.mediaFrameOpts),n=this.$hidden.val();n&&i.on("open",function(){var e=i.state().get("selection"),t=wp.media.attachment(n);t.fetch(),e.add(t?[t]:[])}),acf.isset(window,"wp","media","view","settings","post")&&t.default.isNumeric(this.mediaFrameOpts.post_id)&&(wp.media.view.settings.post.id=this.mediaFrameOpts.post_id)},removeFile:function(e){e.preventDefault(),this.setValue("")},setValue:function(e){var i=this;return this.dntChanged(),(e=parseInt(e))?(this.$hidden.val(e),wp.media.attachment(e).fetch().then(function(e){var t=e.sizes?e.sizes.thumbnail.url:e.icon;i.$img.attr("src",t),i.$(".media-mime").text(e.mime),i.$(".media-title").text(e.title)})):this.$hidden.val(""),this}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",n.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],11:[function(e,t,i){"use strict";e=(e=e("./file.js"))&&e.__esModule?e:{default:e};t.exports=_.extend({},e.default,{type:"image",mediaFrameType:"image"})},{"./file.js":10}],12:[function(e,i,t){!function(t){!function(){"use strict";var n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};var e={type:"link",events:{"click .select-link":"selectLink","click .remove-link":"resetLink"},initialize:function(){this.$input=this.$("[data-link-prop],button"),this.parent().initialize.apply(this,arguments),this.$display=this.$(".link-content")},resetLink:function(e){e.preventDefault(),this.$input.val(""),this.render()},selectLink:function(e){e.preventDefault();e=this.$("a");e.length||(e=(0,n.default)("").appendTo(this.$display)),(0,n.default)(document).on("wplink-close",this,this.parseCB),acf.wpLink.open(e)},setValue:function(e){var i=this;this.dntChanged(),n.default.each(e,function(e,t){return i.$('[data-link-prop="'+e+'"]').val(t)}),this.render()},parseCB:function(e){var t=e.data;setTimeout(function(){t.parse()},1),(0,n.default)(document).off("wplink-close",e.data.parseCB)},parse:function(){var e=this.$("a");this.$('[data-link-prop="target"]').val(e.attr("target")),this.$('[data-link-prop="url"]').val(e.attr("href")),this.$('[data-link-prop="title"]').val(e.html())},render:function(){var e="",t=this.$('[data-link-prop="target"]').val(),i=this.$('[data-link-prop="url"]').val(),n=this.$('[data-link-prop="title"]').val()||i;i&&(t=t?'target="'.concat(t,'"'):"",e='").concat(n,"")),this.$display.html(e)}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],13:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("post_object",acf.models.PostObjectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],14:[function(e,i,t){!function(t){!function(){"use strict";var e,n=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports={type:"radio",initialize:function(){var t,i;this.$input=this.$('[type="radio"]'),this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0),this.$("ul.acf-radio-list.other").length&&(t=this.$('[type="text"]'),this.$('[type="radio"]').on("change",function(e){i=(0,n.default)(this).is('[value="other"]:checked'),t.prop("disabled",!i).prop("readonly",!i)}))},setValue:function(e){this.dntChanged();var t=this.$('[type="radio"][value="'+e+'"]');t.length||(t=this.$('[type="radio"][value="other"]')).next('[type="text"]').prop("disabled",!1).val(e),t.prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],15:[function(e,i,t){!function(t){!function(){"use strict";(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;var e={type:"range",events:{'change [type="range"]':"adaptNumber",'mousemove [type="range"]':"adaptNumber",'change [type="number"]':"adaptRange",'mousemove [type="number"]':"adaptRange"},adaptNumber:function(){this.$('[type="number"]').val(this.$('[type="range"]').val())},adaptRange:function(){this.$('[type="range"]').val(this.$('[type="number"]').val())}};e.events['change [type="checkbox"][value="'+acf_qef.options.do_not_change_value+'"]']="dntChanged",i.exports=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],16:[function(e,i,t){!function(t){!function(){"use strict";var e,s=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};i.exports=function(e,l){return{type:e,initialize:function(){this.acfField=null,this.$input=this.$(".acf-input-wrap select").prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){function t(e){var t=a?o():n.$input,i=t.find('[value="'.concat(e.id,'"]'));i.length?i.prop("selected",!0):t.append(new Option(e.text,e.id,!0,!0)),t.trigger("change")}var i=this,n=(this.dntChanged(),this),a=!!this.$input.data("ui"),d=(this.$input.data("multiple"),l.extend({$input:function(){return this.$(".acf-input-wrap select")}})),o=(this.acfField=new d(this.$input.closest(".acf-field")),function(){var e=i.$input.attr("data-select2-id");return(0,s.default)("#".concat(e))});return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],17:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("select",acf.models.SelectField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],18:[function(i,n,e){!function(t){!function(){"use strict";e("undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null),e(i("./select-factory"));function e(e){return e&&e.__esModule?e:{default:e}}n.exports={type:"taxonomy",initialize:function(){this.subType=this.$el.attr("data-field-sub-type"),"checkbox"===this.subType?this.inputSelect='.acf-input-wrap [type="checkbox"]':"radio"===this.subType?this.inputSelect='.acf-input-wrap [type="radio"]':this.inputSelect=".acf-input-wrap select",this.acfField=null,this.$input=this.$(this.inputSelect).prop("readonly",!0),this.parent().initialize.apply(this,arguments)},setValue:function(e){this.dntChanged();var t=acf.models.TaxonomyField.extend({$input:function(){return this.$(".acf-input-wrap select")}});return this.acfField=new t(this.$input.closest(".acf-field")),"checkbox"===this.subType||"radio"===this.subType?this.setCheckboxValue(e):this.setSelectValue(e),this},setCheckboxValue:function(e){function t(e){return i.$el.find("".concat(i.inputSelect,'[value="').concat(e.id,'"]')).prop("checked",!0)}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},setSelectValue:function(e){function t(e){i.$input.append(new Option(e.text,e.id,!0,!0))}var i=this;return _.isArray(e)?e.map(t):_.isObject(e)&&t(e),this},unload:function(){this.acfField&&this.acfField.onRemove()}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],19:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"textarea",initialize:function(){this.$input=this.$("textarea").prop("readonly",!0),this.parent().initialize.apply(this,arguments),this.$input.on("keydown keyup",function(e){13!=e.which&&27!=e.which||e.stopPropagation()})}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],20:[function(e,n,t){!function(t){!function(){"use strict";var e,i=(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"time_picker",initialize:function(){var e=this;return this.$input=this.$('[type="text"]'),this.$hidden=this.$('[type="hidden"]'),this.parent().initialize.apply(this,arguments),this.datePickerArgs={timeFormat:this.$("[data-time_format]").data("time_format"),altTimeFormat:"HH:mm:ss",altField:this.$hidden,altFieldTimeOnly:!1,showButtonPanel:!0,controlType:"select",oneLine:!0},this.$input.timepicker(this.datePickerArgs).on("blur",function(){(0,i.default)(this).val()||e.$hidden.val("")}),0<(0,i.default)("body > #ui-datepicker-div").length&&(0,i.default)("#ui-datepicker-div").wrap(''),this},setEditable:function(e){this.parent().setEditable.apply(this,arguments),this.$hidden.prop("disabled",!e)},setValue:function(e){var t;this.dntChanged();try{t=i.default.datepicker.parseTime(this.datePickerArgs.altTimeFormat,e)}catch(e){return this}if(t)return this.$hidden.val(e),this.$input.val(i.default.datepicker.formatTime(this.datePickerArgs.timeFormat,t)),this}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],21:[function(e,i,t){!function(t){!function(){"use strict";var e;(e="undefined"!=typeof window?window.jQuery:void 0!==t?t.jQuery:null)&&e.__esModule;i.exports={type:"true_false",initialize:function(){this.parent().initialize.apply(this,arguments),this.$('[type="radio"]').prop("readonly",!0)},setValue:function(e){this.dntChanged(),!0!==e&&!1!==e||this.$('[type="radio"][value="'+Number(e)+'"]').prop("checked",!0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],22:[function(e,n,t){!function(i){!function(){"use strict";var e,t=(e="undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null)&&e.__esModule?e:{default:e};n.exports={type:"url",events:{'change [type="checkbox"][data-is-do-not-change="true"]':"dntChanged","change .bulk-operations select":"setBulkOperation"},setBulkOperation:function(e){""===(0,t.default)(e.target).val()?this.$input.attr("type","url"):this.$input.attr("type","text")}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],23:[function(n,a,e){!function(i){!function(){"use strict";t("undefined"!=typeof window?window.jQuery:void 0!==i?i.jQuery:null);var e=t(n("./select-factory"));function t(e){return e&&e.__esModule?e:{default:e}}a.exports=(0,e.default)("user",acf.models.UserField)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./select-factory":16}],24:[function(l,s,e){!function(o){!function(){"use strict";var a=(t="undefined"!=typeof window?window.jQuery:void 0!==o?o.jQuery:null)&&t.__esModule?t:{default:t},n=l("fields.js");function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var e=Backbone.View.extend({events:{"heartbeat-send.wp-refresh-nonces":"heartbeatListener"},initialize:function(){var i=this;this.active=!0,this.options=arguments[0],Backbone.View.prototype.initialize.apply(this,arguments),this.fields={},this.$(".inline-edit-col-qed [data-key]").each(function(e,t){t=(0,n.factory)(t,this);i.fields[t.key]=t}),Object.keys(this.fields).length&&this.loadValues()},getFieldsToLoad:function(){var i=[];return _.each(this.fields,function(e,t){i.push(e.key)}),i},loadedValues:function(e){this.active&&(this._setValues(e),this.initValidation())},_setValues:function(e){var i=this;_.each(e,function(e,t){t in i.fields?i.fields[t].setValue(e):_.isObject(e)&&i._setValues(e)})},unload:function(e){this.deinitValidation(),_.each(this.fields,function(e){e.unload()}),this.active=!1,acf.unload.reset()},validationComplete:function(e,t){var i=this;return e.valid?acf.unload.off():_.each(e.errors,function(e){var t=e.input.match(/\[([0-9a-z_]+)\]$/g),t=!!t&&t[0].substring(1,t[0].length-1);t in i.fields&&i.fields[t].setError(e.message)}),e},deinitValidation:function(){this.getSaveButton().off("click",this._saveBtnClickHandler)},initValidation:function(){var e=this.$el.closest("form"),t=this.getSaveButton();t.length&&(acf.update("post_id",this.options.object_id),acf.addFilter("validation_complete",this.validationComplete,10,this),t.on("click",this._saveBtnClickHandler),e.data("acf",null),a.default._data(t[0],"events").click.reverse())},_saveBtnClickHandler:function(e){var t=(0,a.default)(this),i=(0,a.default)(this).closest("form");return!!acf.validateForm({form:i,event:!1,reset:!1,success:function(e){t.trigger("click"),setTimeout(function(){return(0,a.default)(':not(.inline-edit-save) > [type="submit"][disabled]').each(function(e,t){return(0,a.default)(t).removeClass("disabled").removeAttr("disabled")})})}})||(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),!1)}}),t=e.extend({loadValues:function(){var t=this,e=_.extend({},acf_qef.options.request,{object_id:this.options.object_id,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:e,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$el.closest("form").find("button.save")}}),i=e.extend({initialize:function(){e.prototype.initialize.apply(this,arguments),acf.add_filter("prepare_for_ajax",this.prepareForAjax,null,this)},prepareForAjax:function(e){return e.acf&&function i(n){a.default.each(n,function(e,t){t==acf_qef.options.do_not_change_value?delete n[e]:"object"===d(t)&&i(t)})}(e.acf),e},loadValues:function(){var e=[],t=((0,a.default)('[type="checkbox"][name="post[]"]:checked').each(function(){e.push((0,a.default)(this).val())}),this),i=_.extend({},acf_qef.options.request,{object_id:e,acf_field_keys:this.getFieldsToLoad(),_wp_http_referrer:(0,a.default)('[name="_wp_http_referer"]:first').val()});return a.default.post({url:ajaxurl,data:i,success:function(e){t.loadedValues(e.data)}}),this},getSaveButton:function(){return this.$('[type="submit"]#bulk_edit')}});s.exports={form:{BulkEdit:i,QuickEdit:t}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"fields.js":4}]},{},[2]);
\ No newline at end of file
diff --git a/languages/acf-quickedit-fields.pot b/languages/acf-quickedit-fields.pot
index 81c3a05..d227c9f 100644
--- a/languages/acf-quickedit-fields.pot
+++ b/languages/acf-quickedit-fields.pot
@@ -1,17 +1,17 @@
-# Copyright (C) 2024 Jörn Lund
+# Copyright (C) 2025 Jörn Lund
# This file is distributed under the GPL3.
msgid ""
msgstr ""
-"Project-Id-Version: ACF QuickEdit Fields 3.3.7\n"
+"Project-Id-Version: ACF QuickEdit Fields 3.3.8\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/acf-quickedit-fields\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2024-07-02T12:36:51+00:00\n"
+"POT-Creation-Date: 2025-01-11T14:10:07+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"X-Generator: WP-CLI 2.10.0\n"
+"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: acf-quickedit-fields\n"
#. Plugin Name of the plugin
@@ -280,13 +280,13 @@ msgid "(User not found)"
msgstr ""
#. translators: Term ID
-#: include/ACFQuickEdit/Fields/Traits/ColumnLists.php:124
+#: include/ACFQuickEdit/Fields/Traits/ColumnLists.php:123
msgid "(Term ID %d not found)"
msgstr ""
#. translators: acf field label
#: include/ACFQuickEdit/Fields/Traits/Filter.php:46
-#: include/ACFQuickEdit/Fields/Traits/Filter.php:94
+#: include/ACFQuickEdit/Fields/Traits/Filter.php:100
msgid "— %s —"
msgstr ""
@@ -298,6 +298,6 @@ msgstr ""
msgid "Add Choice"
msgstr ""
-#: include/ACFQuickEdit/Fields/Traits/InputSelect.php:52
+#: include/ACFQuickEdit/Fields/Traits/InputSelect.php:53
msgid "— Select —"
msgstr ""
diff --git a/package-lock.json b/package-lock.json
index 606945a..6da02ac 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "acf-quickedit-fields",
- "version": "3.3.7",
+ "version": "3.3.8",
"lockfileVersion": 3,
"requires": true,
"packages": {
@@ -8882,4 +8882,4 @@
}
}
}
-}
+}
\ No newline at end of file
diff --git a/package.json b/package.json
index 6d712bb..8e37312 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "acf-quickedit-fields",
- "version": "3.3.7",
+ "version": "3.3.8",
"description": "Enter description here.",
"main": "js/acf-qef-field-group.min.js",
"scripts": {
@@ -120,4 +120,4 @@
"svn": "https://plugins.svn.wordpress.org/acf-quickedit-fields/"
}
}
-}
+}
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index caa0832..2fff569 100644
--- a/readme.txt
+++ b/readme.txt
@@ -5,7 +5,7 @@ Tags: acf, quickedit, columns, bulk edit
Requires at least: 4.7
Tested up to: 6.7
Requires PHP: 7.2
-Stable tag: 3.3.7
+Stable tag: 3.3.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html