diff options
Diffstat (limited to 'static/website/js')
-rw-r--r-- | static/website/js/cloud.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/static/website/js/cloud.js b/static/website/js/cloud.js index 6ec1ba5..33dd209 100644 --- a/static/website/js/cloud.js +++ b/static/website/js/cloud.js @@ -177,4 +177,23 @@ $(document).ready(function() { }, {key: $(this).data("key")}); e.preventDefault(); }); + + + /* Bug form handling */ + $(document).on("click", "#bug", function(e) { + Dajaxice.website.bug_form(function(data){ + Dajax.process(data); + $("#bug-form-wrapper").lightbox_me({centered: false}); + }); + e.preventDefault(); + }); + + $(document).on("click", "#bug-form-submit", function(e){ + Dajaxice.website.bug_form_submit(Dajax.process, {form: $("#bug-form").serialize(true)}); + e.preventDefault(); + }); + + $(document).on("click", "#bug-form #id_notify", function() { + $("#id_email_wrapper").toggle(this.checked); + }); }); |