diff options
author | Jayaram R Pai | 2014-09-11 00:02:57 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-09-11 00:02:57 +0530 |
commit | 961133f4a76fa5e56c74f3521a96109d23855e5a (patch) | |
tree | 4ffb9fbba127a8fb74e46be305ca32421803f5b4 /static/website/js | |
parent | 523bc7d9c6e6632f51ad98534806a937b3600557 (diff) | |
download | scilab-on-cloud-961133f4a76fa5e56c74f3521a96109d23855e5a.tar.gz scilab-on-cloud-961133f4a76fa5e56c74f3521a96109d23855e5a.tar.bz2 scilab-on-cloud-961133f4a76fa5e56c74f3521a96109d23855e5a.zip |
added report bug form
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); + }); }); |