aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAndrew Donnellan <ajd@linux.ibm.com>2019-10-31 17:57:36 +1100
committerDaniel Axtens <dja@axtens.net>2019-11-05 08:47:44 +1100
commitdb936c178b98a4a90b1f1e69740f9350e11e3a93 (patch)
treea16cad3f74c0a75a04dd5ad58c3d3923e89885e1 /templates
parenta0e27b1aa7fb5bea1e4c3029f959f5691412f085 (diff)
downloadpatchwork-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>
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html14
1 files changed, 7 insertions, 7 deletions
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'));
});