PluginProbe
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel / 1.8.0
FlyWP Helper – Page Cache, Page Optimization, Emails for FlyWP Server Control Panel v1.8.0
1.8.0 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 All 27 releases
← All changes | assets/js/admin.js +17 -3 0.3.4 → 1.8.0 View file →
@@ -20,12 +20,26 @@
20 20 $fcgiButton.removeClass('active');
21 21 $fcgiSettings.slideUp('fast');
22 22 });
23 23
24 - // Remove page cache notice after 2 seconds
25 - if ($('#fly-page-cache-notice').length) {
24 + // Remove form update notice after 2 seconds
25 + if ($('.fly-form-notice').length) {
26 26 setTimeout(function () {
27 - $('#fly-page-cache-notice').fadeOut('slow');
27 + $('.fly-form-notice').fadeOut('slow', function () {
28 + $(this).remove();
29 + });
28 30 }, 2000);
31 + }
32 +
33 + if ($('#optimization-wrapper').length) {
34 + let sections = $('#optimization-wrapper .section');
35 +
36 + $('input[id="enable-optimization"]').on('change', function () {
37 + if ($(this).is(':checked')) {
38 + sections.slideDown('fast');
39 + } else {
40 + sections.slideUp('fast');
41 + }
42 + });
29 43 }
30 44
31 45 })(jQuery);