Be sure not to include inline scripts in FULLBRUTALISM mode

This commit is contained in:
Jason McBrayer 2018-05-15 10:06:09 -04:00
parent b465dc9870
commit 741304ee8c
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,7 @@
</div>
</form>
{% if not fullbrutalism %}
<script type="application/javascript">
var file = document.getElementById("id_media_file_1");
file.onchange = function(){
@ -75,3 +76,4 @@ file.onchange = function(){
};
</script>
{% endif %}