Changeset 3376439
- Timestamp:
- 10/10/2025 06:54:44 PM (5 months ago)
- Location:
- pdf-forms-for-contact-form-7/trunk
- Files:
-
- 3 edited
-
js/admin.js (modified) (2 diffs)
-
pdf-forms-for-contact-form-7.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pdf-forms-for-contact-form-7/trunk/js/admin.js
r3373463 r3376439 2319 2319 wpcf7_form.on('change', changeHandler); 2320 2320 2321 // set up a trigger for the tag generator insertion because change event isn't fired when value is changed with js2322 var oldFormContent = "";2321 // set up triggers for the tag generator insertion because change event isn't fired when value is changed programmatically 2322 var oldFormContentLength = 0; 2323 2323 var changeDetectTTL = 0; // don't let the loop run forever 2324 2324 var changeDetectLoop = function() { 2325 2325 // polling for change is needed because tag insertion may happen at a later time 2326 if(oldFormContent == wpcf7_form.val()&& changeDetectTTL > 0)2326 if(oldFormContentLength == wpcf7_form.val().length && changeDetectTTL > 0) 2327 2327 runWhenDone(changeDetectLoop); 2328 2328 else … … 2331 2331 }; 2332 2332 var changeDetect = function() { 2333 oldFormContent = wpcf7_form.val();2333 oldFormContentLength = wpcf7_form.val().length; 2334 2334 changeDetectTTL = 10; 2335 2335 changeDetectLoop(); 2336 2336 }; 2337 2338 // CF7 v5.9.8 and below 2337 2339 jQuery('form.tag-generator-panel .insert-tag').on('click', changeDetect); 2338 2340 2339 // TODO: remove this workaround, determine what is causing the tag-hint not to be filled when tag generator dialog is opened 2341 // CF7 v6.0+ uses dialog elements for tag generators 2342 // the dialog 'close' event fires after tag insertion, but doesn't trigger textarea change event 2343 jQuery('dialog.tag-generator-dialog').on('close', function() { 2344 // only handle change if a tag was actually inserted (returnValue is not empty) 2345 if(this.returnValue && this.returnValue !== '') { 2346 changeDetect(); 2347 } 2348 }); 2349 2350 // CF7 v6.0+ calls form.reset() when opening the tag generator dialog (in tag-generator-v2.js), which clears all form fields including the tag-hint field 2351 // the following workaround re-populates the tag-hint field after the tag generator dialog opens 2340 2352 if(tagGeneratorVersion == 2) 2341 jQuery('button[data-target="tag-generator-panel-pdf_form"]').on("click", function( event) {2353 jQuery('button[data-target="tag-generator-panel-pdf_form"]').on("click", function() { 2342 2354 runWhenDone(function() { jQuery('.wpcf7-pdf-forms-tag-generator-panel .pdf-field-list').resetSelect2Field(); }); 2343 2355 }); -
pdf-forms-for-contact-form-7/trunk/pdf-forms-for-contact-form-7.php
r3373463 r3376439 4 4 * Plugin URI: https://pdfformsfiller.org/ 5 5 * Description: Build Contact Form 7 forms from PDF forms. Get PDFs auto-filled and attached to email messages and/or website responses on form submission. 6 * Version: 2.2. 46 * Version: 2.2.5 7 7 * Requires at least: 4.8 8 8 * Requires PHP: 5.2 … … 25 25 class WPCF7_Pdf_Forms 26 26 { 27 const VERSION = '2.2. 4';27 const VERSION = '2.2.5'; 28 28 const MIN_WPCF7_VERSION = '5.0'; 29 29 const MAX_WPCF7_VERSION = '6.1.99'; -
pdf-forms-for-contact-form-7/trunk/readme.txt
r3373463 r3376439 1 1 === PDF Forms Filler for CF7 === 2 Version: 2.2. 43 Stable tag: 2.2. 42 Version: 2.2.5 3 Stable tag: 2.2.5 4 4 Tested up to: 6.8 5 5 Tags: pdf, form, contact form, email, download … … 67 67 68 68 == Changelog == 69 70 = 2.2.5 = 71 72 * Release date: October 10, 2025 73 74 * Fixed a bug with CF7 v6+: inserting a tag via the tag generator doesn't reload CF7 fields 75 * Minor optimization 69 76 70 77 = 2.2.4 =
Note: See TracChangeset
for help on using the changeset viewer.