Skip to content

Commit

Permalink
update button content during installing templately
Browse files Browse the repository at this point in the history
  • Loading branch information
rudlinkon committed Mar 12, 2024
1 parent e1cce1e commit e13518a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion assets/admin/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@
if (pagenow === 'admin_page_eael-setup-wizard' && button.hasClass('eael-quick-setup-next-button')) {
button.text("Enabling Templates");
$('#eael-next').trigger('click');
} else if (pagenow === 'toplevel_page_eael-settings' && button.hasClass('eael-dashboard-templately-install-btn')) {
button.text("Enabling Templates");
}

$.ajax( {
Expand All @@ -323,7 +325,7 @@
button.attr( "disabled", true );
button.text( "Activated" );

if (pagenow === 'admin_page_eael-setup-wizard' && button.hasClass('eael-quick-setup-next-button')) {
if ((pagenow === 'admin_page_eael-setup-wizard' && button.hasClass('eael-quick-setup-next-button')) || (pagenow === 'toplevel_page_eael-settings' && button.hasClass('eael-dashboard-templately-install-btn'))) {
button.text("Enabled Templates");
}

Expand Down
2 changes: 1 addition & 1 deletion includes/templates/admin/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<?php _e( 'Templates Cloud with Workspace', 'essential-addons-for-elementor-lite' ); ?>
</li>
</ul>
<button class="button wpdeveloper-plugin-installer" data-action="install" data-slug="templately"><?php _e('Enable Templates','essential-addons-for-elementor-lite'); ?></button>
<button class="button wpdeveloper-plugin-installer eael-dashboard-templately-install-btn" data-action="install" data-slug="templately"><?php _e('Enable Templates','essential-addons-for-elementor-lite'); ?></button>
</div><img src="<?php echo esc_url( EAEL_PLUGIN_URL . 'assets/admin/images/quick-setup/templately-qs-img.png' ) ?>" alt="">
</div>
<?php } else { ?>
Expand Down

0 comments on commit e13518a

Please sign in to comment.