Refactor plugin to use OOP best practices with proper namespaces and class structure
This commit is contained in:
@ -56,6 +56,15 @@ jQuery(document).ready(function($) {
|
||||
// Separate handler for close button to ensure it works
|
||||
$(document).on('click', '.fpden-close-modal', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation(); // Prevent event bubbling
|
||||
$('#fpden-update-source-modal').hide();
|
||||
$('#fpden-modal-overlay').remove();
|
||||
});
|
||||
|
||||
// Direct binding to the close button for extra reliability
|
||||
$('.fpden-close-modal').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation(); // Prevent event bubbling
|
||||
$('#fpden-update-source-modal').hide();
|
||||
$('#fpden-modal-overlay').remove();
|
||||
});
|
||||
|
@ -8,7 +8,7 @@
|
||||
'use strict';
|
||||
|
||||
// Current plugin version - this should match the version in the main plugin file
|
||||
const CURRENT_VERSION = '2.1.1';
|
||||
const CURRENT_VERSION = '2.2.0';
|
||||
|
||||
// Plugin slugs to check for
|
||||
const OUR_SLUGS = ['wp-fix-plugin-does-not-exist-notices', 'fix-plugin-does-not-exist-notices'];
|
||||
|
Reference in New Issue
Block a user