diff options
author | Andrew Donnellan <ajd@linux.ibm.com> | 2019-10-31 17:57:36 +1100 |
---|---|---|
committer | Daniel Axtens <dja@axtens.net> | 2019-11-05 08:47:44 +1100 |
commit | db936c178b98a4a90b1f1e69740f9350e11e3a93 (patch) | |
tree | a16cad3f74c0a75a04dd5ad58c3d3923e89885e1 | |
parent | a0e27b1aa7fb5bea1e4c3029f959f5691412f085 (diff) | |
download | patchwork-db936c178b98a4a90b1f1e69740f9350e11e3a93.tar patchwork-db936c178b98a4a90b1f1e69740f9350e11e3a93.tar.gz |
templates: Get rid of type attribute in script tags
In HTML5, the type attribute of a script tag is optional if it's
JavaScript.
Remove all occurrences. The only real gain is slightly smaller page output,
but it also shuts up validators that like to be noisy about this.
Signed-off-by: Andrew Donnellan <ajd@linux.ibm.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
-rw-r--r-- | patchwork/templates/patchwork/bundle.html | 4 | ||||
-rw-r--r-- | patchwork/templates/patchwork/login.html | 2 | ||||
-rw-r--r-- | patchwork/templates/patchwork/submission.html | 2 | ||||
-rw-r--r-- | templates/base.html | 14 |
4 files changed, 11 insertions, 11 deletions
diff --git a/patchwork/templates/patchwork/bundle.html b/patchwork/templates/patchwork/bundle.html index b5c9f90..411c18b 100644 --- a/patchwork/templates/patchwork/bundle.html +++ b/patchwork/templates/patchwork/bundle.html @@ -4,8 +4,8 @@ {% load static %} {% block headers %} - <script type="text/javascript" src="{% static "js/jquery.tablednd.js" %}"></script> - <script type="text/javascript" src="{% static "js/bundle.js" %}"></script> + <script src="{% static "js/jquery.tablednd.js" %}"></script> + <script src="{% static "js/bundle.js" %}"></script> {% endblock %} {% block title %}{{project.name}}{% endblock %} diff --git a/patchwork/templates/patchwork/login.html b/patchwork/templates/patchwork/login.html index e8b1a4e..46f77ed 100644 --- a/patchwork/templates/patchwork/login.html +++ b/patchwork/templates/patchwork/login.html @@ -4,7 +4,7 @@ {% block heading %}Sign in to Patchwork{% endblock %} {% block headers %} - <script type="text/javascript"> + <script> $(function() { $('#id_username').focus() }); diff --git a/patchwork/templates/patchwork/submission.html b/patchwork/templates/patchwork/submission.html index b384978..2706a55 100644 --- a/patchwork/templates/patchwork/submission.html +++ b/patchwork/templates/patchwork/submission.html @@ -8,7 +8,7 @@ {% block title %}{{submission.name}}{% endblock %} {% block body %} -<script type="text/javascript"> +<script> function toggle_div(link_id, headers_id) { var link = document.getElementById(link_id) diff --git a/templates/base.html b/templates/base.html index 802ea98..01b0d6b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,9 +7,9 @@ <link rel="stylesheet" type="text/css" href="{% static "css/bootstrap.min.css" %}"/> <link rel="stylesheet" type="text/css" href="{% static "css/selectize.bootstrap3.css" %}"/> <link rel="stylesheet" type="text/css" href="{% static "css/style.css" %}"/> - <script type="text/javascript" src="{% static "js/jquery-1.10.1.min.js" %}"></script> - <script type="text/javascript" src="{% static "js/jquery.stickytableheaders.min.js" %}"></script> - <script type="text/javascript" src="{% static "js/jquery.checkboxes-1.0.6.min.js" %}"></script> + <script src="{% static "js/jquery-1.10.1.min.js" %}"></script> + <script src="{% static "js/jquery.stickytableheaders.min.js" %}"></script> + <script src="{% static "js/jquery.checkboxes-1.0.6.min.js" %}"></script> <!-- IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> @@ -18,10 +18,10 @@ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/2.0.8/es5-shim.min.js"></script> <![endif]--> - <script type="text/javascript" src="{% static "js/bootstrap.min.js" %}"></script> - <script type="text/javascript" src="{% static "js/selectize.min.js" %}"></script> - <script type="text/javascript" src="{% static "js/clipboard.min.js" %}"></script> - <script type="text/javascript"> + <script src="{% static "js/bootstrap.min.js" %}"></script> + <script src="{% static "js/selectize.min.js" %}"></script> + <script src="{% static "js/clipboard.min.js" %}"></script> + <script> $(document).ready(function() { new Clipboard(document.querySelectorAll('button.btn-copy')); }); |