X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/ce728e78bb55eb75753f40dc5cd0997a53e7dd27..0a8139aee3334b3fe07bada2ab18f69a84b33d28:/prawokultury/static/js/promobox.js

diff --git a/prawokultury/static/js/promobox.js b/prawokultury/static/js/promobox.js
index 760c10b..0c2235f 100644
--- a/prawokultury/static/js/promobox.js
+++ b/prawokultury/static/js/promobox.js
@@ -42,4 +42,31 @@ if ($slides.length > 1) {
 }
 
 
-});
\ No newline at end of file
+/*
+if (!$('#id_presentation').checked) {
+        $('[id^="id_presentation_"]').parent().parent().hide();
+}
+if (!$('#id_workshop').checked) {
+        $('[id^="id_workshop_"]').parent().parent().hide();
+}
+
+$('#id_presentation').change(function() {
+    if (this.checked) {
+        $('[id^="id_presentation_"]').parent().parent().show('slow');
+    } else {
+        $('[id^="id_presentation_"]').parent().parent().hide('slow');
+    }
+});
+
+$('#id_workshop').change(function() {
+    if (this.checked) {
+        $('[id^="id_workshop_"]').parent().parent().show('slow');
+    } else {
+        $('[id^="id_workshop_"]').parent().parent().hide('slow');
+    }
+});
+*/
+
+
+
+});