summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--certificate/templates/download.html9
1 files changed, 4 insertions, 5 deletions
diff --git a/certificate/templates/download.html b/certificate/templates/download.html
index d41d537..e23695e 100644
--- a/certificate/templates/download.html
+++ b/certificate/templates/download.html
@@ -64,11 +64,10 @@
email = "{{ workshops.0.email }}"
}
$('#email').val(email);
- notreg = {{ notregistered }}
- if(notreg == 1)
- {
- $("#invalidModal").modal();
- }
+ notreg = "{{ notregistered }}";
+ if(notreg == "1"){
+ $("#invalidModal").modal();
+ }
});
</script>
{% endblock %}