[damned-lies] Removed unneeded text/javascript type
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Removed unneeded text/javascript type
- Date: Sat, 18 Jul 2020 12:12:10 +0000 (UTC)
commit b141056c65408814472c709be4eb888850a80507
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Jun 25 17:40:42 2020 +0200
Removed unneeded text/javascript type
templates/base.html | 14 +++++++-------
templates/languages/language_all_modules.html | 4 ++--
templates/languages/language_release.html | 4 ++--
templates/login.html | 2 +-
templates/module_detail.html | 2 +-
templates/people/person_detail.html | 4 ++--
templates/registration/register.html | 2 +-
templates/release_compare.html | 4 ++--
templates/teams/team_detail.html | 2 +-
templates/teams/team_edit.html | 4 ++--
templates/vertimus/activity_summary.html | 4 ++--
templates/vertimus/vertimus_detail.html | 6 +++---
12 files changed, 26 insertions(+), 26 deletions(-)
---
diff --git a/templates/base.html b/templates/base.html
index 9f095398..619ff359 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -12,13 +12,13 @@
{% if LANGUAGE_BIDI %}
<link rel="stylesheet" href="{{ STATIC_URL }}css/rtl.css">
{% endif %}
- <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.min.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}js/jquery.cookie.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}js/main.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}js/modal.js"></script>
- <script type="text/javascript" src="{{ STATIC_URL }}js/login.js"></script>
+ <script src="{{ STATIC_URL }}js/jquery.min.js"></script>
+ <script src="{{ STATIC_URL }}js/jquery.cookie.js"></script>
+ <script src="{{ STATIC_URL }}js/main.js"></script>
+ <script src="{{ STATIC_URL }}js/modal.js"></script>
+ <script src="{{ STATIC_URL }}js/login.js"></script>
- <script type="text/javascript">
+ <script>
$(document).ready(function () {
$(document).on('hidden.bs.modal', function (e) {
$(e.target).removeData('bs.modal');
@@ -142,6 +142,6 @@
</div>
</div>
-<script type="text/javascript" src="https://static.gnome.org/js/deneb.min.js"></script>
+<script src="https://static.gnome.org/js/deneb.min.js"></script>
</body>
</html>
diff --git a/templates/languages/language_all_modules.html b/templates/languages/language_all_modules.html
index f36825b2..055ae515 100644
--- a/templates/languages/language_all_modules.html
+++ b/templates/languages/language_all_modules.html
@@ -4,8 +4,8 @@
{% block title %} {% trans "All modules" %} - {{ language.get_name }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
+<script>
$(document).ready(function()
{
$("#stats-table").tablesorter({
diff --git a/templates/languages/language_release.html b/templates/languages/language_release.html
index 80985f75..fe94f03b 100644
--- a/templates/languages/language_release.html
+++ b/templates/languages/language_release.html
@@ -3,8 +3,8 @@
{% block title %} {% trans release.description %} - {{ language_name }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
+<script>
$(document).ready(function()
{
$("#stats-table").tablesorter({headers: {3:{sorter: false}, 5:{sorter:"text"}}});
diff --git a/templates/login.html b/templates/login.html
index dc4a0ef9..35e4f706 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -40,7 +40,7 @@
<a href="{{ link }}" class="btn btn-action btn-block">{% trans "Register" %}</a>
-<script type="text/javascript">
+<script>
document.getElementById('id_username').focus()
</script>
{% endif %}
diff --git a/templates/module_detail.html b/templates/module_detail.html
index 17c2270e..6c4bc22d 100644
--- a/templates/module_detail.html
+++ b/templates/module_detail.html
@@ -6,7 +6,7 @@
{% endblock %}
{% block extrahead %}
-<script type="text/javascript">
+<script>
$(document).ready(function() {
$(".branch").click(function(event) {
event.preventDefault();
diff --git a/templates/people/person_detail.html b/templates/people/person_detail.html
index f8f02372..db61da59 100644
--- a/templates/people/person_detail.html
+++ b/templates/people/person_detail.html
@@ -4,8 +4,8 @@
{% load stats_extras %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
+<script>
$(document).ready(function()
{
$("#working_on").tablesorter({
diff --git a/templates/registration/register.html b/templates/registration/register.html
index 63a02e56..f41d106d 100644
--- a/templates/registration/register.html
+++ b/templates/registration/register.html
@@ -42,7 +42,7 @@
</div> <!-- ends div.login -->
</form>
-<script type="text/javascript">
+<script>
document.getElementById('id_username').focus()
</script>
{% endif %}
diff --git a/templates/release_compare.html b/templates/release_compare.html
index 74208af0..168410d5 100644
--- a/templates/release_compare.html
+++ b/templates/release_compare.html
@@ -4,8 +4,8 @@
{% block title %} {% trans "Releases Comparison" %} {% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
+<script>
$(document).ready(function()
{
$("#stats").tablesorter({sortList: [[0,0]]});
diff --git a/templates/teams/team_detail.html b/templates/teams/team_detail.html
index 9511969d..34972e99 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -10,7 +10,7 @@
img.toggler { cursor: pointer; }
div#togglable-inactive { display: none; }
</style>
-<script type="text/javascript">
+<script>
$(document).ready(function() {
$("img.toggler").click(function(event) {
event.preventDefault();
diff --git a/templates/teams/team_edit.html b/templates/teams/team_edit.html
index f3e8dd8c..a20374b8 100644
--- a/templates/teams/team_edit.html
+++ b/templates/teams/team_edit.html
@@ -3,8 +3,8 @@
{% block title %}{{ team.get_description }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/autosize.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/autosize.min.js"></script>
+<script>
$(document).ready(function() {
autosize(document.querySelector('#id_presentation'));
});
diff --git a/templates/vertimus/activity_summary.html b/templates/vertimus/activity_summary.html
index 7555d796..a503d76c 100644
--- a/templates/vertimus/activity_summary.html
+++ b/templates/vertimus/activity_summary.html
@@ -3,8 +3,8 @@
{% load humanize %}
{% block extrahead %}
-<script type="text/javascript" src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/jquery.tablesorter.min.js"></script>
+<script>
$(document).ready(function()
{
$("#summary").tablesorter({
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index c99050b9..19ee8857 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -10,8 +10,8 @@
tr.tr_author, tr.tr_sync_master { display: none; }
img.icons { width: 24px; height: 24px; margin: 0 0.7em; }
</style>
-<script type="text/javascript" src="{{ STATIC_URL }}js/autosize.min.js"></script>
-<script type="text/javascript">
+<script src="{{ STATIC_URL }}js/autosize.min.js"></script>
+<script>
function updateForm() {
var actionValue = $("#id_action").val();
@@ -275,7 +275,7 @@ $(document).ready(function() {
<form enctype="multipart/form-data"
action="{% url 'vertimus_by_stats_id' stats.id language.id %}"
method="POST" class="djform">
- <script type="text/javascript">
+ <script>
var send_mail_defaults = Array();
{% for action in action_form.actions %}
{% if action.name %}send_mail_defaults['{{ action.name }}'] = {{ action.send_mail_to_ml|lower }};{%
endif %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]