{% extends "admin/base_site.html" %}

{% block extrahead %}
<script>
/* <![CDATA[ */
(function() {
  var saved = window.onload;
  var hash = window.location.hash;
  window.onload = function() {
    saved && saved();
    var elements = document.getElementsByTagName("a");
    for(var i = 0; i< elements.length; i++) {
      if("#" + elements[i].getAttribute("name") == hash) {
        elements[i].parentNode.setAttribute("style", "border: 3px solid red;");
      }
    }
  }
})();
/* ]]> */
</script>
{% endblock %}


{% extends "admin/base_site.html" %}

{% block extrahead %}
<script type="text/javascript">
/* <![CDATA[ */
(function() {
  var saved = window.onload;
  var hash = window.location.hash;
  window.onload = function() {
    saved && saved();
    var elements = document.getElementsByTagName("a");
    for(var i = 0; i< elements.length; i++) {
      if("#" + elements[i].getAttribute("name") == hash) {
        elements[i].parentNode.setAttribute("style", "border: 3px solid red;");
      }
    }
  }
})();
/* ]]> */
</script>
{% endblock %}


Add a type attribute to the <script> tag, as it's required.
Add a type attribute to the <script> tag, as it's required.

Signed-off-by: Martin Mahner <54669547a225ff20cba8b75a4adca540eef25858@mahner.org>
