Fix Free Plugins tab HTML structure and JS selectors

This commit is contained in:
Marcus Quinn
2025-03-24 20:02:40 +00:00
parent 19e6455abb
commit f0d00accaf

View File

@ -81,11 +81,7 @@ class WP_Allstars_Free_Plugins_Manager {
</div> </div>
<div class="wp-allstars-plugin-browser"> <div class="wp-allstars-plugin-browser">
<div class="wp-list-table plugin-install"> <div id="wpa-plugin-list"></div>
<div id="wpa-plugin-list">
<div id="the-list"></div>
</div>
</div>
<div class="wp-allstars-loading-overlay"> <div class="wp-allstars-loading-overlay">
<span class="spinner is-active"></span> <span class="spinner is-active"></span>
</div> </div>
@ -107,7 +103,7 @@ class WP_Allstars_Free_Plugins_Manager {
$('.wp-allstars-loading-overlay').show(); $('.wp-allstars-loading-overlay').show();
// Clear existing plugins // Clear existing plugins
$('#the-list').empty(); $('#wpa-plugin-list').empty();
// Load plugins in selected category // Load plugins in selected category
$.ajax({ $.ajax({
@ -124,7 +120,7 @@ class WP_Allstars_Free_Plugins_Manager {
$('.wp-allstars-loading-overlay').hide(); $('.wp-allstars-loading-overlay').hide();
// Add plugins to the container // Add plugins to the container
$('#the-list').html(response.data); $('#wpa-plugin-list').html(response.data);
} else { } else {
console.error('Error loading plugins:', response.data); console.error('Error loading plugins:', response.data);
} }