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