🎨 Replace deprecated “language” attribute
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 24 Nov 2019 10:42:36 +0000 (11:42 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 24 Nov 2019 10:43:47 +0000 (11:43 +0100)
src/main/resources/templates/editProfile.html
src/main/resources/templates/imageBrowser.html
src/main/resources/templates/knownSones.html
src/main/resources/templates/options.html

index 27b6b3d..e1fa3c5 100644 (file)
@@ -1,6 +1,6 @@
 <%include include/head.html>
 
-       <script language="javascript">
+       <script type="application/javascript">
                function recheckMoveButtons() {
                        $("#sone .profile-field").each(function() {
                                $(".move-up-field", this).toggleClass("hidden", $(this).prev(".profile-field").length === 0);
index 7b24018..a174a09 100644 (file)
@@ -2,7 +2,7 @@
 
        <div class="page-id hidden">image-browser</div>
 
-       <script language="javascript">
+       <script type="application/javascript">
 
                /* hide all those forms. */
                function hideAndShowBlock(blockElement, clickToShowElement, clickToHideElement) {
                <%else>
 
                        <%if album.sone.local>
-                               <script language="javascript">
+                               <script type="application/javascript">
 
                                        $(function() {
                                                getTranslation("WebInterface.DefaultText.UploadImage.Title", function(text) {
                <%else>
 
                        <%if image.sone.local>
-                               <script language="javascript">
+                               <script type="application/javascript">
                                        $(function() {
                                                getTranslation("WebInterface.DefaultText.EditImage.Title", function(text) {
                                                        $("#edit-image input[name='title']").each(function() {
        <%elseif soneRequested>
 
                <%if sone.local>
-                       <script language="javascript">
+                       <script type="application/javascript">
                                $(function() {
                                        getTranslation("WebInterface.DefaultText.CreateAlbum.Name", function(text) {
                                                $("#create-album input[name='name']").each(function() {
index c0bb35b..a224a68 100644 (file)
@@ -2,7 +2,7 @@
 
        <div class="page-id hidden">known-sones</div>
 
-       <script language="javascript">
+       <script type="application/javascript">
 
                $(document).ready(function() {
                        $("select[name=sort]").change(function() {
index 34a1196..c7760ef 100644 (file)
@@ -1,6 +1,6 @@
 <%include include/head.html>
 
-       <script language="javascript">
+       <script type="application/javascript">
                $(document).ready(function() {
                        getTranslation("WebInterface.DefaultText.Option.InsertionDelay", function(insertionDelayDefaultText) {
                                registerInputTextareaSwap("#sone #options input[name=insertion-delay]", insertionDelayDefaultText, "insertion-delay", true, true);