diff options
author | Fateh Sandhu <fatehsandhu@gmail.com> | 2018-01-02 01:37:23 +0100 |
---|---|---|
committer | Kohei Yoshino <kohei.yoshino@gmail.com> | 2018-01-02 01:37:23 +0100 |
commit | 37bac7ea1661464624b21f24940cbad625ef056b (patch) | |
tree | 7d1ac0308fdc62ddab5a7a948bc488472593aaeb /template/en/default/attachment | |
parent | e83fa315f72b97c5504e85236623df1f14dddc94 (diff) | |
download | bugzilla-37bac7ea1661464624b21f24940cbad625ef056b.tar.gz bugzilla-37bac7ea1661464624b21f24940cbad625ef056b.tar.xz |
Bug 1426507 - Upgrade BMO to HTML5
Diffstat (limited to 'template/en/default/attachment')
6 files changed, 9 insertions, 10 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl index 710c12334..e058b3def 100644 --- a/template/en/default/attachment/create.html.tmpl +++ b/template/en/default/attachment/create.html.tmpl @@ -39,7 +39,7 @@ doc_section = "attachments.html" %] -<script type="text/javascript"> +<script> <!-- TUI_hide_default('attachment_text_field'); --> diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 1ab3893cd..dc861b7a6 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -28,7 +28,7 @@ <a id="attachment_data_controller" href="javascript:TUI_toggle_class('attachment_text_field'); javascript:TUI_toggle_class('attachment_data')" >paste text as attachment</a>).<br> - <input type="file" id="data" name="data" size="50" > + <input type="file" id="data" name="data" size="50"> </td> </tr> <tr class="attachment_text_field"> @@ -58,7 +58,7 @@ <input type="checkbox" id="ispatch" name="ispatch" value="1"> <label for="ispatch">patch</label><br><br> [%# Reset this whenever the page loads so that the JS state is up to date %] - <script type="text/javascript" [% csp_nonce FILTER none %]> + <script [% csp_nonce FILTER none %]> $(function() { $("#file").on("change", function() { DataFieldHandler(); diff --git a/template/en/default/attachment/diff-file.html.tmpl b/template/en/default/attachment/diff-file.html.tmpl index a742a841e..70fbf554c 100644 --- a/template/en/default/attachment/diff-file.html.tmpl +++ b/template/en/default/attachment/diff-file.html.tmpl @@ -45,7 +45,7 @@ [% END %] [% END %] </td></tr></thead><tbody class="[% collapsed ? 'file_collapse' : 'file' %]"> -<script type="text/javascript"> +<script> incremental_restore() </script> diff --git a/template/en/default/attachment/diff-header.html.tmpl b/template/en/default/attachment/diff-header.html.tmpl index b2be0e4f0..f72d00624 100644 --- a/template/en/default/attachment/diff-header.html.tmpl +++ b/template/en/default/attachment/diff-header.html.tmpl @@ -59,8 +59,7 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %] <head> <link href="[% 'skins/standard/attachment.css' FILTER version %]" rel="stylesheet" type="text/css"> - <script src="[% 'js/attachment.js' FILTER version %]" - type="text/javascript"></script> + <script src="[% 'js/attachment.js' FILTER version %]"></script> </head> <body onload="[% onload FILTER html %]"> [% END %] diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl index 4e0195e34..43bf4c83c 100644 --- a/template/en/default/attachment/edit.html.tmpl +++ b/template/en/default/attachment/edit.html.tmpl @@ -219,7 +219,7 @@ <a href="attachment.cgi?id=[% attachment.id %]">View the attachment on a separate page</a>.</b> </iframe> [% END %] - <script type="text/javascript"> + <script> <!-- var patchviewerinstalled = 0; var attachment_id = [% attachment.id %]; @@ -261,7 +261,7 @@ </div> <div id="attachment_comments_and_flags"> [% IF user.id %] - <div id="smallCommentFrame" > + <div id="smallCommentFrame"> <label for="comment">Comment (on the [% terms.bug %]):</label> [% classNames = 'block' %] [% classNames = "$classes bz_private" IF attachment.isprivate %] @@ -328,7 +328,7 @@ [% END %] </div> [% IF can_edit %] - <script type="text/javascript"> + <script> <!-- YAHOO.util.Dom.removeClass( document.body, "no_javascript" ); toggle_attachment_details_visibility( ); diff --git a/template/en/default/attachment/list.html.tmpl b/template/en/default/attachment/list.html.tmpl index bf8f89830..50800dd8e 100644 --- a/template/en/default/attachment/list.html.tmpl +++ b/template/en/default/attachment/list.html.tmpl @@ -19,7 +19,7 @@ # Frédéric Buclin <LpSolit@gmail.com> #%] -<script type="text/javascript"> +<script> <!-- function toggle_display(link) { var table = document.getElementById("attachment_table"); |