summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson2017-06-27 20:19:17 +0000
committerMagnus Hagander2017-06-27 20:19:17 +0000
commit03755674bb05ffaa06815a6b65c6d8d98463fe95 (patch)
tree296f2ed5a94501f4ca3614ecf19a21aba9a59dd8
parent99b8e90daaf6d4245677a6295e4594907bcae244 (diff)
Remove deprecated and superfluous <script> attributes
The language attribute has been deprecated for quite some time with the type attribute setting the type of embedded content. The type attribute has further been defined to text/javascript as the default value in the spec, so no attribute should be used for Javascript. Per the standard: https://www.w3.org/TR/html5/scripting-1.html
-rw-r--r--pgcommitfest/commitfest/templates/base.html2
-rw-r--r--pgcommitfest/commitfest/templates/commitfest.html2
-rw-r--r--pgcommitfest/commitfest/templates/patch.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/pgcommitfest/commitfest/templates/base.html b/pgcommitfest/commitfest/templates/base.html
index 6c8756c..fb86783 100644
--- a/pgcommitfest/commitfest/templates/base.html
+++ b/pgcommitfest/commitfest/templates/base.html
@@ -43,7 +43,7 @@
<script src="/https/git.postgresql.org/static/commitfest/js/jquery.js"></script>
<script src="/https/git.postgresql.org/static/commitfest/js/jquery-ui.js"></script>
<script src="/https/git.postgresql.org/static/commitfest/js/bootstrap.js"></script>
-<script type="text/javascript" src="/https/git.postgresql.org/static/selectable/js/jquery.dj.selectable.js"></script>
+<script src="/https/git.postgresql.org/static/selectable/js/jquery.dj.selectable.js"></script>
<script src="/https/git.postgresql.org/static/commitfest/js/commitfest.js"></script>
{%block morescript%}{%endblock%}
</html>
diff --git a/pgcommitfest/commitfest/templates/commitfest.html b/pgcommitfest/commitfest/templates/commitfest.html
index 350bf4a..c648f8c 100644
--- a/pgcommitfest/commitfest/templates/commitfest.html
+++ b/pgcommitfest/commitfest/templates/commitfest.html
@@ -124,7 +124,7 @@
{%endblock%}
{%block morescript%}
-<script language="javascript">
+<script>
{%if user.is_staff%}
function send_selected() {
var authors = [];
diff --git a/pgcommitfest/commitfest/templates/patch.html b/pgcommitfest/commitfest/templates/patch.html
index a6add97..a54d08a 100644
--- a/pgcommitfest/commitfest/templates/patch.html
+++ b/pgcommitfest/commitfest/templates/patch.html
@@ -202,7 +202,7 @@
{%endblock%}
{%block morescript%}
-<script language="javascript">
+<script>
$(document).ready(function() {
$('button.close-nofloat').each(function(i,o) {
$(o).tooltip();