From f1874b0e0f5c32fcb2ab3075070a57064f4ed53f Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Wed, 19 Sep 2018 11:53:02 +0530 Subject: Added checkbox for terms and conditions in paper submission --- static/website/js/custom.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'static/website/js') diff --git a/static/website/js/custom.js b/static/website/js/custom.js index 2573428..ef59691 100644 --- a/static/website/js/custom.js +++ b/static/website/js/custom.js @@ -91,3 +91,14 @@ $(document) e.preventDefault(); // prevent the default action (scroll / move caret) }); +$(function() +{ + $('#id_terms_and_conditions').click(function() + { + if ($('#id_terms_and_conditions').is(":checked")) { + $('#modal_terms_and_conditions').modal('show'); + }else { + $('#modal_terms_and_conditions').modal('hide'); + } + }); +}); \ No newline at end of file -- cgit