Changeset 2870986
- Timestamp:
- 02/25/2023 12:50:03 PM (3 years ago)
- Location:
- custom-codes/trunk
- Files:
-
- 2 edited
-
assets/script/script.js (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
custom-codes/trunk/assets/script/script.js
r2812418 r2870986 578 578 if (parseInt(customCodesData.playSound)) codes_audioElement.play(); 579 579 580 // Allow changing window 581 $(window).off( 'beforeunload.edit-post' ); 582 580 583 } else { 581 584 console.log('Something went wrong.', customCodes.errors); … … 608 611 e.preventDefault(); 609 612 610 } else window.onbeforeunload = null; // Allow changing window613 } else $(window).off( 'beforeunload.edit-post' ); // Allow changing window 611 614 612 615 }); … … 640 643 customCodes.currentTitleTag = newTitle.length ? newTitle : "Untitled Code"; 641 644 642 if (initialPostTitle == newTitle) window.onbeforeunload = null; // Allow changing window645 if (initialPostTitle == newTitle) $(window).off( 'beforeunload.edit-post' ); // Allow changing window 643 646 644 647 }); … … 656 659 657 660 // Allow changing window if AJAX is not available 658 if (!$('#ajax-saver').length) window.onbeforeunload = null;661 if (!$('#ajax-saver').length) $(window).off( 'beforeunload.edit-post' ); // Allow changing window 659 662 660 663 // Click the save button -
custom-codes/trunk/readme.txt
r2870967 r2870986 143 143 144 144 == Changelog == 145 = 2.3.4 (2023-02-25 1 4:45EET) =145 = 2.3.4 (2023-02-25 15:42 EET) = 146 146 * Tested on WordPress 6.2 147 147 * Custom login URLs detection improvements 148 * Unsaved warning bug fix 148 149 149 150 = 2.3.3 (2023-02-14 20:54 EET) =
Note: See TracChangeset
for help on using the changeset viewer.