|
@@ -43,19 +43,27 @@ function muninApiFade(selector, visible) {
|
|
|
*
|
|
|
* @return void
|
|
|
*/
|
|
|
-function onReadyPathVisibility() {
|
|
|
+function onReadySettingsVisibility() {
|
|
|
if ($('#edit-munin-api-watchdog-init').attr('checked') === false) {
|
|
|
$('#edit-munin-api-init-path-wrapper').hide();
|
|
|
}
|
|
|
+ if ($('#edit-munin-api-next-report').attr('checked') === false) {
|
|
|
+ $('.munin-api-report').hide();
|
|
|
+ }
|
|
|
+
|
|
|
$("input:radio[name='munin_api_watchdog']").click(function () {
|
|
|
muninApiFade('#edit-munin-api-init-path-wrapper',
|
|
|
$("input:radio[name='munin_api_watchdog']:checked").val() === 'init');
|
|
|
});
|
|
|
+ $('#edit-munin-api-next-report').click(function () {
|
|
|
+ muninApiFade('.munin-api-report',
|
|
|
+ $("#edit-munin-api-next-report").attr('checked'));
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
|
|
|
* Assign ready handler
|
|
|
*/
|
|
|
$(function () {
|
|
|
- onReadyPathVisibility();
|
|
|
+ onReadySettingsVisibility();
|
|
|
});
|