CommonJs.php
3 years ago
ConnectionIcon.php
3 years ago
ManualScheduling.php
2 years ago
SaveSchedulingButton.php
3 years ago
SchedulingHelp.php
2 years ago
SchedulingOptions.php
2 years ago
SchedulingUI.php
2 years ago
CommonJs.php
31 lines
| 1 | <?php |
| 2 | if(!defined('ABSPATH')) { |
| 3 | die(); |
| 4 | } |
| 5 | ?> |
| 6 | <script type="text/javascript"> |
| 7 | (function ($) { |
| 8 | $(function () { |
| 9 | |
| 10 | // Main accordion logic |
| 11 | $('input[name="scheduling_enable"]').on('change', function () { |
| 12 | if ($('input[name="scheduling_enable"]:checked').val() == 1) { |
| 13 | $('#automatic-scheduling').slideDown(); |
| 14 | $('.manual-scheduling').slideUp(); |
| 15 | setTimeout(function () { |
| 16 | $('.timezone-select').slideDown(275); |
| 17 | }, 200); |
| 18 | } |
| 19 | else if ($('input[name="scheduling_enable"]:checked').val() == 2) { |
| 20 | $('.timezone-select').slideUp(275); |
| 21 | $('#automatic-scheduling').slideUp(); |
| 22 | $('.manual-scheduling').slideDown(); |
| 23 | } else { |
| 24 | $('.timezone-select').hide(); |
| 25 | $('#automatic-scheduling').slideUp(); |
| 26 | $('.manual-scheduling').slideUp(); |
| 27 | } |
| 28 | }); |
| 29 | }); |
| 30 | })(jQuery); |
| 31 | </script> |