PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 0.3.4
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v0.3.4
1.7.1 1.7.0 1.6.0 1.5.2 trunk 0.1 0.2.0 0.2.1 0.3 0.3.1 0.3.2 0.3.3 0.3.4 0.4 0.4.1 0.4.2 0.4.3 1.0 1.1 1.2 1.3.1 1.4.0 1.4.1 1.5.0 1.5.1 All 26 releases
flywp / assets / js / admin.js

admin.js in FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel 0.3.4, at assets/js/admin.js

32 lines 765 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function ($) {
2
3 var $fcgiButton = $('#fastcgi-settings-button'),
4 $fcgiClose = $('#fastcgi-settings-close'),
5 $fcgiSettings = $('#fastcgi-settings');
6
7 // show/hide page cache settings
8 $fcgiButton.on('click', function (e) {
9 $(this).toggleClass('active');
10
11 if ($(this).hasClass('active')) {
12 $fcgiSettings.slideDown('fast');
13 } else {
14 $fcgiSettings.slideUp('fast');
15 }
16 });
17
18 // close page cache settings
19 $fcgiClose.on('click', function (e) {
20 $fcgiButton.removeClass('active');
21 $fcgiSettings.slideUp('fast');
22 });
23
24 // Remove page cache notice after 2 seconds
25 if ($('#fly-page-cache-notice').length) {
26 setTimeout(function () {
27 $('#fly-page-cache-notice').fadeOut('slow');
28 }, 2000);
29 }
30
31 })(jQuery);
32