diff --git a/module/blog/view/edit/edit.js.php b/module/blog/view/edit/edit.js.php index 837db768..0b4cc432 100755 --- a/module/blog/view/edit/edit.js.php +++ b/module/blog/view/edit/edit.js.php @@ -28,4 +28,38 @@ $("#blogEditMailNotification").on("change", function() { $("#blogEditDraft").on("click", function() { $("#blogEditState").val(0); $("#blogEditForm").trigger("submit"); +}); + + +$("#blogEditCloseComment").on("change", function() { + if ($(this).is(':checked') ) { + $("#commentOptionsWrapper").slideUp(); + } else { + $("#commentOptionsWrapper").slideDown(); + } +}); + +$("#blogEditMailNotification").on("change", function() { + if ($(this).is(':checked') ) { + $("#blogEditGroupNotification").slideDown(); + } else { + $("#blogEditGroupNotification").slideUp(); + } +}); + + +$( document).ready(function() { + + if ($("#blogEditCloseComment").is(':checked') ) { + $("#commentOptionsWrapper").slideUp(); + } else { + $("#commentOptionsWrapper").slideDown(); + } + + if ($("#blogEditMailNotification").is(':checked') ) { + $("#blogEditGroupNotification").slideDown(); + } else { + $("#blogEditGroupNotification").slideUp(); + } + }); \ No newline at end of file diff --git a/module/blog/view/edit/edit.php b/module/blog/view/edit/edit.php index c4c25205..bd27ed4b 100755 --- a/module/blog/view/edit/edit.php +++ b/module/blog/view/edit/edit.php @@ -21,6 +21,7 @@ 'Publier' ]); ?> +