PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.3
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.3
6.0.4 6.0.3 6.0.2 6.0.1 6.0.0 5.8.6 5.8.5 5.8.4 5.8.3 5.8.2 5.8.1 5.8.0 5.7.9.2 5.7.9.1 5.7.8 5.7.9 5.7.6 5.7.7 5.7.5 5.7.4 5.7.3 5.7.2 5.7.1 trunk 5.6.0 All 35 releases
← All changes | assets/js/automatorwp-admin-add-ons.js +29 -0 5.7.2 → 6.0.3 View file →
@@ -1,0 +1,29 @@
1 +(function ( $ ) {
2 +
3 + // Add-ons tabs
4 + $('.automatorwp_page_automatorwp_add_ons .wp-filter a').on('click', function(e) {
5 + e.preventDefault();
6 +
7 + if( $(this).hasClass('current') ) {
8 + return;
9 + }
10 +
11 + var current = $(this).closest('.wp-filter').find('a.current');
12 +
13 + // Toggle plugin cards visibility
14 + $('.automatorwp-plugin-card.' + current.data('target')).hide();
15 +
16 + $('.automatorwp-plugin-card.' + $(this).data('target')).fadeIn(250);
17 +
18 + // Toggle current class
19 + current.removeClass('current');
20 + $(this).addClass('current');
21 + });
22 +
23 + // Hide all plugins cards
24 + $('.automatorwp-add-ons .automatorwp-plugin-card:not(.' + $('.automatorwp_page_automatorwp_add_ons .wp-filter a.current').data('target') + ')').hide();
25 +
26 + // Trigger click on first tab
27 + $('.automatorwp_page_automatorwp_add_ons .wp-filter a.current').trigger('click');
28 +
29 +})( jQuery );