PluginProbe
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI / 6.0.0
AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI v6.0.0
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 5.6.1 All 34 releases
automatorwp / assets / js / automatorwp-admin-add-ons.js

automatorwp-admin-add-ons.js in AutomatorWP – No-Code Workflow Automation, Integration & Webhooks Plugin, now with AI 6.0.0, at assets/js/automatorwp-admin-add-ons.js

29 lines 961 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 );