summaryrefslogtreecommitdiff
path: root/design/templates/admin/message.html
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
committerluxagraf <sng@luxagraf.net>2018-07-07 20:41:09 -0400
commit6a2393e6819ea09aeb559354a69746750aa8cbdf (patch)
tree0ac9890740f9afcd9720ea9b550a3895d95ecb50 /design/templates/admin/message.html
parentfe13c3830c6b36fb8f78009a788650a992cb3070 (diff)
added campsite model, refactored some code to avoid circular imports,
reorganized some auxilary functions and fixed broken build JS.
Diffstat (limited to 'design/templates/admin/message.html')
-rw-r--r--design/templates/admin/message.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/design/templates/admin/message.html b/design/templates/admin/message.html
index 528fb01..348b15d 100644
--- a/design/templates/admin/message.html
+++ b/design/templates/admin/message.html
@@ -4,18 +4,17 @@
{{message}}... <span style="color:red;" id="done"></span>
{% endblock %}
-{% block onload %}
-onLoad="setTimeout('delayer()', 1000)"
-{% endblock %}
-
{% block extrahead %}
<script type="text/javascript">
-<!--
function delayer(){
+ console.log("function fired")
document.getElementById('done').innerHTML = 'done'
window.location = "/admin/"
}
-//-->
+
+document.addEventListener("DOMContentLoaded", function(event) {
+ window.setTimeout(delayer, 1000);
+});
</script>
{% endblock %}