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 | |
parent | e83fa315f72b97c5504e85236623df1f14dddc94 (diff) | |
download | bugzilla-37bac7ea1661464624b21f24940cbad625ef056b.tar.gz bugzilla-37bac7ea1661464624b21f24940cbad625ef056b.tar.xz |
Bug 1426507 - Upgrade BMO to HTML5
Diffstat (limited to 'template/en/default')
45 files changed, 102 insertions, 103 deletions
diff --git a/template/en/default/account/prefs/email.html.tmpl b/template/en/default/account/prefs/email.html.tmpl index 80185b503..d09bffc5d 100644 --- a/template/en/default/account/prefs/email.html.tmpl +++ b/template/en/default/account/prefs/email.html.tmpl @@ -41,7 +41,7 @@ filter some or all notifications. </p> -<script type="text/javascript"> +<script> <!-- function SetCheckboxes(setting) { for (var count = 0; count < document.userprefsform.elements.length; count++) { @@ -261,7 +261,7 @@ You are watching everyone in the following list: [% FOREACH w = watchedusers %] <option value="[% w FILTER html %]">[% w FILTER html %]</option> [% END %] - </select> <br /> + </select> <br> <input type="checkbox" id="remove_watched_users" name="remove_watched_users"> <label for="remove_watched_users">Remove selected users from my watch list</label> [% ELSE %] diff --git a/template/en/default/account/prefs/saved-searches.html.tmpl b/template/en/default/account/prefs/saved-searches.html.tmpl index 7b71ccf6d..58448eb5e 100644 --- a/template/en/default/account/prefs/saved-searches.html.tmpl +++ b/template/en/default/account/prefs/saved-searches.html.tmpl @@ -25,7 +25,7 @@ #%] [% IF user.can_bless %] - <script type="text/javascript"><!-- + <script><!-- function update_checkbox(group) { var bless_groups = [[% bless_group_ids.join(",") FILTER js %]]; var checkbox = document.getElementById(group.name.replace(/share_(\d+)/, "force_$1")); diff --git a/template/en/default/admin/custom_fields/create.html.tmpl b/template/en/default/admin/custom_fields/create.html.tmpl index f89f979fd..41852de03 100644 --- a/template/en/default/admin/custom_fields/create.html.tmpl +++ b/template/en/default/admin/custom_fields/create.html.tmpl @@ -32,7 +32,7 @@ %] [%# set initial editability of fields such as Reverse Relationship Description %] -<script type="text/javascript"> +<script> YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('type'))}); </script> @@ -108,7 +108,7 @@ YAHOO.util.Event.onDOMReady(function() {onChangeType(document.getElementById('ty </th> <td> <input type="text" id="reverse_desc" name="reverse_desc" value="" size="40" disabled="disabled"> - <br/> + <br> Use this label for the list of [% terms.bugs %] that link to [%+ terms.abug %] with this [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] diff --git a/template/en/default/admin/custom_fields/edit.html.tmpl b/template/en/default/admin/custom_fields/edit.html.tmpl index 5ce2b7fd5..ab6eeec0c 100644 --- a/template/en/default/admin/custom_fields/edit.html.tmpl +++ b/template/en/default/admin/custom_fields/edit.html.tmpl @@ -90,7 +90,7 @@ <td> <input type="text" id="reverse_desc" name="reverse_desc" size="40" value="[% field.reverse_desc FILTER html %]"> - <br/> + <br> Use this label for the list of [% terms.bugs %] that link to [%+ terms.abug %] with this [%+ field_types.${constants.FIELD_TYPE_BUG_ID} FILTER html %] field. diff --git a/template/en/default/admin/params/common.html.tmpl b/template/en/default/admin/params/common.html.tmpl index 6458ba419..4941afa38 100644 --- a/template/en/default/admin/params/common.html.tmpl +++ b/template/en/default/admin/params/common.html.tmpl @@ -111,7 +111,7 @@ </tr> </table> - <script type="text/javascript"> + <script> bz_toggleClass("input_[% param.name FILTER html %]", "bz_default_hidden"); bz_toggleClass("table_[% param.name FILTER html %]", "bz_default_hidden"); </script> diff --git a/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl b/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl index 1fc92c928..f9c836980 100644 --- a/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl +++ b/template/en/default/admin/products/groupcontrol/confirm-edit.html.tmpl @@ -37,7 +37,7 @@ which the group is newly mandatory and will be added. group '[% group.name FILTER html %]' impacts [% group.count %] [% terms.bugs %] for which the group is no longer applicable and will be removed.[% END %] -<form action="editproducts.cgi" method="post" > +<form action="editproducts.cgi" method="post"> [% PROCESS "global/hidden-fields.html.tmpl" exclude="^Bugzilla_(login|password)$" %] diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl index 8f1a3d2fc..22db6a546 100644 --- a/template/en/default/admin/users/confirm-delete.html.tmpl +++ b/template/en/default/admin/users/confirm-delete.html.tmpl @@ -448,9 +448,9 @@ <form method="post" action="editusers.cgi"> <p> - <input type="submit" id="delete" value="Yes, delete"/> - <input type="hidden" name="action" value="delete" /> - <input type="hidden" name="userid" value="[% otheruser.id %]" /> + <input type="submit" id="delete" value="Yes, delete"> + <input type="hidden" name="action" value="delete"> + <input type="hidden" name="userid" value="[% otheruser.id %]"> <input type="hidden" name="token" value="[% token FILTER html %]"> [% INCLUDE listselectionhiddenfields %] </p> diff --git a/template/en/default/admin/users/create.html.tmpl b/template/en/default/admin/users/create.html.tmpl index 6fd5b67e7..fa1c00097 100644 --- a/template/en/default/admin/users/create.html.tmpl +++ b/template/en/default/admin/users/create.html.tmpl @@ -39,8 +39,8 @@ %] </table> <p> - <input type="submit" id="add" value="Add"/> - <input type="hidden" name="action" value="new" /> + <input type="submit" id="add" value="Add"> + <input type="hidden" name="action" value="new"> <input type="hidden" name="token" value="[% token FILTER html %]"> [% INCLUDE listselectionhiddenfields %] </p> diff --git a/template/en/default/admin/users/edit.html.tmpl b/template/en/default/admin/users/edit.html.tmpl index 64eece345..4eb62e763 100644 --- a/template/en/default/admin/users/edit.html.tmpl +++ b/template/en/default/admin/users/edit.html.tmpl @@ -99,7 +99,7 @@ $(function() { [% %]<input type="checkbox" name="bless_[% group.id %]" value="1" - [% ' checked="checked"' IF perms.directbless %] /> + [% ' checked="checked"' IF perms.directbless %]> [% ']' IF perms.indirectbless %]</td> [% END %] <td class="checkbox"> @@ -109,7 +109,7 @@ $(function() { id="group_[% group.id %]" name="group_[% group.id %]" value="1" - [% ' checked="checked"' IF perms.directmember %] /> + [% ' checked="checked"' IF perms.directmember %]> [% '*' IF perms.regexpmember %] [% ']' IF perms.derivedmember %]</td> <td class="groupname"> @@ -165,9 +165,9 @@ $(function() { </table> <p> - <input type="submit" id="update" value="Save Changes" /> - <input type="hidden" name="userid" value="[% otheruser.id %]" /> - <input type="hidden" name="action" value="update" /> + <input type="submit" id="update" value="Save Changes"> + <input type="hidden" name="userid" value="[% otheruser.id %]"> + <input type="hidden" name="action" value="update"> <input type="hidden" name="token" value="[% token FILTER html %]"> [% INCLUDE listselectionhiddenfields %] @@ -199,9 +199,9 @@ $(function() { [% IF Param('allowuserdeletion') && editusers %] <form method="post" action="editusers.cgi"> <p> - <input type="submit" id="delete" value="Delete User" /> - <input type="hidden" name="action" value="del" /> - <input type="hidden" name="userid" value="[% otheruser.id %]" /> + <input type="submit" id="delete" value="Delete User"> + <input type="hidden" name="action" value="del"> + <input type="hidden" name="userid" value="[% otheruser.id %]"> [% INCLUDE listselectionhiddenfields %] </p> </form> diff --git a/template/en/default/admin/users/listselectvars.html.tmpl b/template/en/default/admin/users/listselectvars.html.tmpl index a2be91d7a..a1ed38939 100644 --- a/template/en/default/admin/users/listselectvars.html.tmpl +++ b/template/en/default/admin/users/listselectvars.html.tmpl @@ -28,6 +28,6 @@ [% BLOCK listselectionhiddenfields %] [% FOREACH field = listselectionvalues.keys %] <input type="hidden" name="[% field FILTER html %]" - value="[% listselectionvalues.$field FILTER html %]" /> + value="[% listselectionvalues.$field FILTER html %]"> [% END %] [% END %] diff --git a/template/en/default/admin/users/search.html.tmpl b/template/en/default/admin/users/search.html.tmpl index 36ca48ed8..b9dbccb36 100644 --- a/template/en/default/admin/users/search.html.tmpl +++ b/template/en/default/admin/users/search.html.tmpl @@ -35,7 +35,7 @@ %] <form name="f" method="get" action="editusers.cgi"> -<input type="hidden" name="action" value="list" /> +<input type="hidden" name="action" value="list"> <p><label for="matchvalue">List users with</label> <select id="matchvalue" name="matchvalue"> <option value="login_name">login name</option> @@ -43,17 +43,17 @@ <option value="userid">user id</option> </select> <label for="matchstr">matching</label> -<input size="32" name="matchstr" id="matchstr" /> +<input size="32" name="matchstr" id="matchstr"> <select name="matchtype"> <option value="substr" selected="selected">case-insensitive substring</option> <option value="regexp">case-insensitive regexp</option> <option value="notregexp">not (case-insensitive regexp)</option> <option value="exact">exact (find this user)</option> </select> -<input type="submit" id="search" value="Search" /></p> +<input type="submit" id="search" value="Search"></p> [% IF restrictablegroups.size %] - <p><input type="checkbox" name="grouprestrict" value="1" id="grouprestrict" /> + <p><input type="checkbox" name="grouprestrict" value="1" id="grouprestrict"> <label for="grouprestrict">Restrict to users belonging to group</label> <select name="groupid" onchange="document.forms['f'].grouprestrict.checked=true"> diff --git a/template/en/default/admin/workflow/comment.html.tmpl b/template/en/default/admin/workflow/comment.html.tmpl index 109d98bc2..9b447f777 100644 --- a/template/en/default/admin/workflow/comment.html.tmpl +++ b/template/en/default/admin/workflow/comment.html.tmpl @@ -21,7 +21,7 @@ style_urls = ['skins/standard/admin.css'] %] -<script type="text/javascript"> +<script> <!-- function toggle_cell(cell) { if (cell.checked) diff --git a/template/en/default/admin/workflow/edit.html.tmpl b/template/en/default/admin/workflow/edit.html.tmpl index 5f2b21263..5646c294d 100644 --- a/template/en/default/admin/workflow/edit.html.tmpl +++ b/template/en/default/admin/workflow/edit.html.tmpl @@ -21,7 +21,7 @@ style_urls = ['skins/standard/admin.css'] %] -<script type="text/javascript"> +<script> <!-- function toggle_cell(cell) { if (cell.checked) 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"); diff --git a/template/en/default/bug/comments.html.tmpl b/template/en/default/bug/comments.html.tmpl index 9c8b56217..2346983b2 100644 --- a/template/en/default/bug/comments.html.tmpl +++ b/template/en/default/bug/comments.html.tmpl @@ -22,10 +22,10 @@ [% PROCESS bug/time.html.tmpl %] -<script src="[% 'js/comments.js' FILTER version %]" type="text/javascript"> +<script src="[% 'js/comments.js' FILTER version %]"> </script> -<script type="text/javascript"> +<script> <!-- /* Adds the reply text to the 'comment' textarea */ function replyToComment(id, real_id, name) { @@ -191,13 +191,13 @@ [% IF comment.collapsed %] </span> [% END %] - <script type="text/javascript"> + <script> addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display'); </script> </span> [% ELSIF comment.collapsed %] <span class="bz_comment_actions"> - <script type="text/javascript"> + <script> addCollapseLink([% comment.count %], [% comment.collapsed FILTER js %], 'Toggle comment display'); </script> </span> diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index ee40890cb..9420f1330 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -41,7 +41,7 @@ [% tablecolour = "#FFFFCC" %] [%# This script displays the descriptions for selected components. %] -<script type="text/javascript"> +<script> var descriptions = [ [% FOREACH c = product.components %] '[% c.description FILTER js %]', @@ -181,7 +181,7 @@ function PutDescription() { <td valign="top" width="100%"> <div id="description" style="color: green; margin-left: 10px; height: 5em; overflow: auto;"> - <script type="text/javascript"> + <script> if ((document.getElementById) && (document.body.innerHTML)) { document.write("\ Select a component to see its description here."); diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index d969ded64..567c58d58 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -40,7 +40,7 @@ onload = "init();" %] -<script type="text/javascript"> +<script> <!-- function init() { @@ -217,7 +217,7 @@ TUI_hide_default('attachment_text_field'); <input type="button" id="expert_fields_controller" value="Hide Advanced Fields" onClick="toggleAdvancedFields()"> [%# Show the link if the browser supports JS %] - <script type="text/javascript"> + <script> YAHOO.util.Dom.removeClass('expert_fields_controller', 'bz_default_hidden'); </script> @@ -276,7 +276,7 @@ TUI_hide_default('attachment_text_field'); [%- END %] </select> - <script type="text/javascript"> + <script> <!-- [%+ INCLUDE "bug/field-events.js.tmpl" field = bug_fields.component, product = product %] @@ -492,7 +492,7 @@ TUI_hide_default('attachment_text_field'); <th>Possible<br>Duplicates:</th> <td colspan="3"> <div id="possible_duplicates"></div> - <script type="text/javascript"> + <script> var dt_columns = [ { key: "id", label: "[% field_descs.bug_id FILTER js %]", formatter: YAHOO.bugzilla.dupTable.formatBugLink }, diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index 164602ff2..22e1ab05a 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -49,7 +49,7 @@ </div> [% END %] [% IF user.id %] - <script type="text/javascript"> + <script> YAHOO.bugzilla.commentTagging.init([% user.can_tag_comments ? 'true' : 'false' %]); YAHOO.bugzilla.commentTagging.min_len = [% constants.MIN_COMMENT_TAG_LENGTH FILTER js %]; YAHOO.bugzilla.commentTagging.max_len = [% constants.MAX_COMMENT_TAG_LENGTH FILTER js %]; @@ -64,7 +64,7 @@ [% END %] [% END %] -<script type="text/javascript"> +<script> <!-- [% IF user.is_timetracker %] var fRemainingTime = [% bug.remaining_time %]; // holds the original value @@ -300,7 +300,7 @@ </table> </div> </div> - <script type="text/javascript"> + <script> hideAliasAndSummary('[% bug.short_desc FILTER js %]', '[% bug.alias FILTER js %]'); </script> [% END %] @@ -505,7 +505,7 @@ <input type="checkbox" id="set_default_assignee" name="set_default_assignee" value="1"> <label id="set_default_assignee_label" for="set_default_assignee">Reset Assignee to default</label> </div> - <script type="text/javascript"> + <script> hideEditableField('bz_assignee_edit_container', 'bz_assignee_input', 'bz_assignee_edit_action', @@ -555,7 +555,7 @@ <input type="checkbox" id="set_default_qa_contact" name="set_default_qa_contact" value="1"> <label for="set_default_qa_contact" id="set_default_qa_contact_label">Reset QA Contact to default</label> </div> - <script type="text/javascript"> + <script> hideEditableField('bz_qa_contact_edit_container', 'bz_qa_contact_input', 'bz_qa_contact_edit_action', @@ -591,7 +591,7 @@ [%# BMO - hook for adding mentors %] [% Hook.process("after_people", "bug/edit.html.tmpl") %] - <script type="text/javascript"> + <script> assignToDefaultOnChange(['product', 'component'], '[% bug.component_obj.default_assignee.login FILTER js %]', '[% bug.component_obj.default_qa_contact.login FILTER js %]'); @@ -638,7 +638,7 @@ [% END %] </span> [% IF bug.check_can_change_field("bug_file_loc", 0, 1) %] - <script type="text/javascript"> + <script> hideEditableField('bz_url_edit_container', 'bz_url_input_area', 'bz_url_edit_action', @@ -911,7 +911,7 @@ [% END %] </div> [% IF user.id || bug.cc.size %] - <script type="text/javascript"> + <script> hideEditableField( 'cc_edit_area_showhide_container', 'cc_edit_area', 'cc_edit_area_showhide', @@ -998,7 +998,7 @@ [% IF !bug_flags_set %]<em>None yet set</em>[% END %] (<a href="#" id="bz_flags_more_action">[% IF !bug_flags_set %]set[% ELSE %]more[% END %] flags</a>) </span> - <script type="text/javascript"> + <script> YAHOO.util.Dom.removeClass('bz_flags_more_container', 'bz_default_hidden'); var table = YAHOO.util.Dom.get("flags"); var rows = YAHOO.util.Dom.getElementsByClassName('bz_flag_type', 'tbody', table); @@ -1085,7 +1085,7 @@ class="edit_me bz_default_hidden"> (<a href="#" id="[% field.name FILTER html %]_edit_action">edit</a>) </span> - <script type="text/javascript"> + <script> hideEditableField('[% field.name FILTER js %]_edit_container', '[% field.name FILTER js %]_input_area', '[% field.name FILTER js %]_edit_action', @@ -1248,7 +1248,7 @@ [% BLOCK summon_comment_box %] <div id="comment_top_hat"> - <script type="text/javascript"> + <script> function summonCommentBox() { var commentbox = document.getElementById('add_comment'); document.getElementById('comment_top_hat').appendChild(commentbox); diff --git a/template/en/default/bug/field.html.tmpl b/template/en/default/bug/field.html.tmpl index 8667687b2..b9bee6de3 100644 --- a/template/en/default/bug/field.html.tmpl +++ b/template/en/default/bug/field.html.tmpl @@ -74,7 +74,7 @@ <div id="con_calendar_[% field.name FILTER html %]"></div> - <script type="text/javascript"> + <script> createCalendar('[% field.name FILTER js %]') </script> [% CASE constants.FIELD_TYPE_BUG_ID %] @@ -91,7 +91,7 @@ <span id="[% field.name FILTER html %]_edit_container" class="edit_me bz_default_hidden"> (<a href="#" id="[% field.name FILTER html %]_edit_action">edit</a>) </span> - <script type="text/javascript"> + <script> hideEditableField('[% field.name FILTER js %]_edit_container', '[% field.name FILTER js %]_input_area', '[% field.name FILTER js %]_edit_action', @@ -175,7 +175,7 @@ <input type="hidden" name="defined_[% field.name FILTER html %]"> [% END %] - <script type="text/javascript"> + <script> <!-- initHidingOptionsForIE('[% field.name FILTER js %]'); [%+ INCLUDE "bug/field-events.js.tmpl" @@ -197,7 +197,7 @@ id = field.name name = field.name minrows = 4 maxrows = 8 cols = 60 defaultcontent = value mandatory = field.is_mandatory %] </div> - <script type="text/javascript"> + <script> hideEditableField('[% field.name FILTER js %]_edit_container', '[% field.name FILTER js %]_input', '[% field.name FILTER js %]_edit_action', @@ -230,7 +230,7 @@ [% IF !bug.id %]value="[% value FILTER html %]"[% END %]> </div> [% IF bug.id %] - <script type="text/javascript"> + <script> setupEditLink('[% field.name FILTER js %]'); </script> [% END %] @@ -241,7 +241,7 @@ name="[% field.name FILTER html %]" data-values="[% field.name FILTER html %]" value="[% value FILTER html %]"> - <script type="text/javascript"> + <script> if (typeof BUGZILLA.autocomplete_values === 'undefined') BUGZILLA.autocomplete_values = []; BUGZILLA.autocomplete_values['[% field.name FILTER js %]'] = [ diff --git a/template/en/default/bug/knob.html.tmpl b/template/en/default/bug/knob.html.tmpl index ac14e6dc0..a0a5dc647 100644 --- a/template/en/default/bug/knob.html.tmpl +++ b/template/en/default/bug/knob.html.tmpl @@ -70,7 +70,7 @@ [% END %] </div> -<script type="text/javascript"> +<script> var close_status_array = [ [% FOREACH status = bug.choices.bug_status %] [% NEXT IF status.is_open %] diff --git a/template/en/default/bug/new_bug.html.tmpl b/template/en/default/bug/new_bug.html.tmpl index f508cba31..ef5e361c0 100644 --- a/template/en/default/bug/new_bug.html.tmpl +++ b/template/en/default/bug/new_bug.html.tmpl @@ -58,7 +58,7 @@ [% END %] [% WRAPPER bug_modal/module.html.tmpl title = "Attach a File" collapsed = 1 %] <div class="file-container"> - <input type="file" style="display: inline-block;" id="data" name="data" size="50" > + <input type="file" style="display: inline-block;" id="data" name="data" size="50"> <button id="reset" style="display: none;">Reset</button> </div> <label for="description" style="display: inline-block;">Description:</label> diff --git a/template/en/default/bug/process/updates-disabled.html.tmpl b/template/en/default/bug/process/updates-disabled.html.tmpl index 5ea84d476..b6c95fdf2 100644 --- a/template/en/default/bug/process/updates-disabled.html.tmpl +++ b/template/en/default/bug/process/updates-disabled.html.tmpl @@ -23,7 +23,7 @@ <html> <head> <title>[% terms.Bugzilla %] - [% terms.Bug %] Updates Temporarily Suspended</title> -<style type="text/css"> +<style> body { margin: 2em; background-color: #455372; diff --git a/template/en/default/bug/summarize-time.html.tmpl b/template/en/default/bug/summarize-time.html.tmpl index 65ecc3e72..50c777063 100644 --- a/template/en/default/bug/summarize-time.html.tmpl +++ b/template/en/default/bug/summarize-time.html.tmpl @@ -341,7 +341,7 @@ </tr></table> </form> -<script type="text/javascript"> +<script> <!-- createCalendar('start_date'); createCalendar('end_date'); diff --git a/template/en/default/bug/tagging.html.tmpl b/template/en/default/bug/tagging.html.tmpl index 88c113051..6d669dd5d 100644 --- a/template/en/default/bug/tagging.html.tmpl +++ b/template/en/default/bug/tagging.html.tmpl @@ -20,7 +20,7 @@ <input type="hidden" name="list_of_bugs" value="1"> <input type="hidden" name="bug_ids" value="[% bug.id FILTER none %]"> <input type="hidden" name="token" value="[% issue_hash_token(['savedsearch']) FILTER html %]"> - <select id="lob_action" name="action" > + <select id="lob_action" name="action"> <option value="add">Add</option> [% IF user.tags.size %] <option value="remove">Remove</option> diff --git a/template/en/default/flag/list.html.tmpl b/template/en/default/flag/list.html.tmpl index 6d2ad69ae..6e411add9 100644 --- a/template/en/default/flag/list.html.tmpl +++ b/template/en/default/flag/list.html.tmpl @@ -30,7 +30,7 @@ [% DEFAULT flag_table_id = "flags" %] -<script src="[% 'js/flag.js' FILTER version %]" type="text/javascript"></script> +<script src="[% 'js/flag.js' FILTER version %]"></script> <table id="[% flag_table_id FILTER html %]"> [% UNLESS flag_no_header %] diff --git a/template/en/default/global/footer.html.tmpl b/template/en/default/global/footer.html.tmpl index 4578c1084..7922e494b 100644 --- a/template/en/default/global/footer.html.tmpl +++ b/template/en/default/global/footer.html.tmpl @@ -19,7 +19,7 @@ # Svetlana Harisova <light@rathedg.com> #%] -</div> [%# bugzilla-body %] +</main> [%# bugzilla-body %] [% Hook.process("end") %] diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 033d8ea1c..f339b80b1 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -130,11 +130,11 @@ <title>[% title %]</title> [% IF Param('utf8') %] - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <meta charset="UTF-8"> [% END %] [% IF no_index %] - <meta name="robots" content="noindex" /> + <meta name="robots" content="noindex"> [% END %] [% PROCESS "global/site-navigation.html.tmpl" %] @@ -150,7 +150,7 @@ [% END %] [% IF style %] - <style type="text/css"> + <style> [% style %] </style> [% END %] @@ -376,7 +376,7 @@ </aside> [% END %] -<div id="bugzilla-body"> +<main id="bugzilla-body"> [%# in most cases the "header" variable provides redundant information, however # there are exceptions where not displaying this text is problematic. %] @@ -399,6 +399,6 @@ [% END %] [% BLOCK format_js_link %] - <script [% script_nonce FILTER none %] type="text/javascript" src="[% asset_url FILTER version FILTER html %]"></script> + <script [% script_nonce FILTER none %] src="[% asset_url FILTER version FILTER html %]"></script> [% "\n" %] [% END %] diff --git a/template/en/default/list/change-columns.html.tmpl b/template/en/default/list/change-columns.html.tmpl index c5e02d684..8edd21aee 100644 --- a/template/en/default/list/change-columns.html.tmpl +++ b/template/en/default/list/change-columns.html.tmpl @@ -123,7 +123,7 @@ [% IF saved_search %] <p> <input type="hidden" name="saved_search" - value="[% saved_search.id FILTER html%]" > + value="[% saved_search.id FILTER html%]"> <input type="hidden" name="token" value="[% issue_hash_token([saved_search.id, saved_search.name]) FILTER html %]"> <input type="checkbox" id="save_columns_for_search" checked="checked" diff --git a/template/en/default/list/edit-multiple.html.tmpl b/template/en/default/list/edit-multiple.html.tmpl index 58d02839c..427acba37 100644 --- a/template/en/default/list/edit-multiple.html.tmpl +++ b/template/en/default/list/edit-multiple.html.tmpl @@ -28,7 +28,7 @@ <input type="hidden" name="dontchange" value="[% dontchange FILTER html %]"> <input type="hidden" name="token" value="[% token FILTER html %]"> -<script type="text/javascript"> +<script> function SetCheckboxes(value) { var elements = document.forms.changeform.getElementsByTagName('input'), numelements = elements.length, @@ -309,7 +309,7 @@ [% IF user.is_insider %] <input type="checkbox" name="comment_is_private" value="1" id="newcommentprivacy" - onClick="updateCommentTagControl(this, form)"/> + onClick="updateCommentTagControl(this, form)"> <label for="newcommentprivacy"> Make comment private (visible only to members of the <strong>[% Param('insidergroup') FILTER html %]</strong> group) @@ -328,7 +328,7 @@ [% IF groups.size > 0 %] - <script type="text/javascript"> + <script> function turn_off(myself, id) { var other_checkbox = document.getElementById(id); if (myself.checked && other_checkbox) { @@ -443,7 +443,7 @@ </select> </span> - <script type="text/javascript"> + <script> var close_status_array = new Array("[% closed_status_array.join('", "') FILTER none %]"); YAHOO.util.Event.addListener('bug_status', "change", showHideStatusItems, '[% "is_duplicate" IF bug.dup_id %]'); YAHOO.util.Event.onDOMReady( showHideStatusItems ); diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl index 512add995..671722c85 100644 --- a/template/en/default/list/quips.html.tmpl +++ b/template/en/default/list/quips.html.tmpl @@ -140,7 +140,7 @@ [% END %] </tbody> </table> - <script type="text/javascript"><!-- + <script><!-- var numelements = document.forms.editform.elements.length; function SetCheckboxes(value) { var item; diff --git a/template/en/default/reports/create-chart.html.tmpl b/template/en/default/reports/create-chart.html.tmpl index b7068ac14..1e6945ebc 100644 --- a/template/en/default/reports/create-chart.html.tmpl +++ b/template/en/default/reports/create-chart.html.tmpl @@ -33,7 +33,7 @@ donames = 1 %] -<script type="text/javascript"> +<script> [%# This function takes necessary action on selection of a subcategory %] function subcatSelected() { var cat = document.chartform.category.value; diff --git a/template/en/default/reports/report-table.html.tmpl b/template/en/default/reports/report-table.html.tmpl index cef47c2d9..e8f926f64 100644 --- a/template/en/default/reports/report-table.html.tmpl +++ b/template/en/default/reports/report-table.html.tmpl @@ -46,7 +46,7 @@ [% urlbase = BLOCK %][% urlbase %]&[% tbl_field FILTER uri %]=[% tbl FILTER uri %][% END %] [% END %] -<script type="text/javascript"> +<script> function bz_encode (str, decode) { // First decode HTML entities, if requested. if (decode) diff --git a/template/en/default/reports/series-common.html.tmpl b/template/en/default/reports/series-common.html.tmpl index cecf288ec..469eb79c5 100644 --- a/template/en/default/reports/series-common.html.tmpl +++ b/template/en/default/reports/series-common.html.tmpl @@ -29,7 +29,7 @@ [% subcategory = category.${default.category} %] [% name = subcategory.${default.subcategory} %] -<script type="text/javascript"> +<script> [%# This structure holds details of the series the user can select from. %] var series = { [% FOREACH c = category.keys.sort %] diff --git a/template/en/default/request/queue.html.tmpl b/template/en/default/request/queue.html.tmpl index 64353b4dc..d40281f50 100644 --- a/template/en/default/request/queue.html.tmpl +++ b/template/en/default/request/queue.html.tmpl @@ -31,7 +31,7 @@ style_urls = ['skins/standard/buglist.css'] %] -<script type="text/javascript"> +<script> var useclassification = false; // No classification level in use var first_load = true; // Is this the first time we load the page? var last_sel = []; // Caches last selection diff --git a/template/en/default/search/boolean-charts.html.tmpl b/template/en/default/search/boolean-charts.html.tmpl index abfd164a1..455cb48b8 100644 --- a/template/en/default/search/boolean-charts.html.tmpl +++ b/template/en/default/search/boolean-charts.html.tmpl @@ -53,7 +53,7 @@ <div class="bz_section_title" id="custom_search_filter"> <div id="custom_search_query_controller" class="arrow">▼</div> - <a id="chart" href="javascript:TUI_toggle_class('custom_search_query')" > + <a id="chart" href="javascript:TUI_toggle_class('custom_search_query')"> Custom Search</a> <span class="section_help">Didn't find what you're looking for above? This area allows for ANDs, ORs, and other more complex searches.</span> @@ -70,15 +70,15 @@ with_buttons = 1 condition = { f => 'noop' } cond_num = cond_num + 1 %] - <script type="text/javascript"> + <script> TUI_alternates['custom_search_query'] = '►'; TUI_hide_default('custom_search_query'); TUI_alternates['custom_search_advanced'] = "Show Advanced Features"; TUI_hide_default('custom_search_advanced'); </script> - <script type="text/javascript" src="[% 'js/custom-search.js' FILTER version %]"></script> - <script type="text/javascript" src="[% 'js/history.js/native.history.js' FILTER version %]"></script> - <script type="text/javascript"> + <script src="[% 'js/custom-search.js' FILTER version %]"></script> + <script src="[% 'js/history.js/native.history.js' FILTER version %]"></script> + <script> redirect_html4_browsers(); [%# These are alternative labels for the AND and OR options in and_all_select %] var cs_and_label = 'Match ALL of the following:'; diff --git a/template/en/default/search/field.html.tmpl b/template/en/default/search/field.html.tmpl index d7cdfe886..a2ff5718b 100644 --- a/template/en/default/search/field.html.tmpl +++ b/template/en/default/search/field.html.tmpl @@ -62,7 +62,7 @@ [% IF onchange %] onchange="[% onchange FILTER html %]"[% END %] value="[% value FILTER html %]" data-values="[% field.name FILTER html %]"> - <script type="text/javascript"> + <script> if (typeof BUGZILLA.autocomplete_values === 'undefined') BUGZILLA.autocomplete_values = []; BUGZILLA.autocomplete_values['[% field.name FILTER js %]'] = [ @@ -99,7 +99,7 @@ <small>(YYYY-MM-DD or relative dates)</small> <span id="con_calendar_[% field.name FILTER html %]to"></span> - <script type="text/javascript"> + <script> createCalendar('[% field.name FILTER js %]'); createCalendar('[% field.name FILTER js %]to'); </script> diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 2e36eb9e3..02357e473 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -23,7 +23,7 @@ [% PROCESS "global/field-descs.none.tmpl" %] -<script type="text/javascript"> +<script> var first_load = true; [%# is this the first time we load the page? %] var last_sel = new Array(); [%# caches last selection %] @@ -142,7 +142,7 @@ TUI_hide_default('information_query'); type_selected = default.short_desc_type.0 accesskey = "s" %] - <script type="text/javascript"> <!-- + <script> <!-- document.forms[queryform].short_desc.focus(); // --> </script> @@ -251,7 +251,7 @@ TUI_hide_default('information_query'); <div class="search_field_row"> <span class="field_label"><label for="bug_id">[% terms.Bugs %] numbered</label></span> - <div id="bug_id_container" > + <div id="bug_id_container"> <input type="text" name="bug_id" id="bug_id" value="[% default.bug_id.0 FILTER html %]" size="20"> <div class="field_help">(comma-separated list)</div> @@ -356,10 +356,10 @@ TUI_hide_default('information_query'); [%# *** Bug Changes *** %] <div class="bz_section_title" id="history_filter"> <div id="history_query_controller" class="arrow">▼</div> - <a href="javascript:TUI_toggle_class('history_query')" >Search By Change History</a> + <a href="javascript:TUI_toggle_class('history_query')">Search By Change History</a> <span>Narrow results to how fields have changed during a specific time period</span> </div> -<ul class="bug_changes bz_search_section history_query" id="history_filter_section" > +<ul class="bug_changes bz_search_section history_query" id="history_filter_section"> <li> <label for="chfield">where ANY of the fields:</label> [%# Create array, so we can sort it by description #%] @@ -397,7 +397,7 @@ TUI_hide_default('information_query'); onclick="showCalendar('chfieldto')"><span>Calendar</span></button> <div id="con_calendar_chfieldto"></div> (YYYY-MM-DD or relative dates) - <script type="text/javascript"> + <script> createCalendar('chfieldfrom'); createCalendar('chfieldto'); </script> diff --git a/template/en/default/search/search-create-series.html.tmpl b/template/en/default/search/search-create-series.html.tmpl index 69e7a6307..335448de9 100644 --- a/template/en/default/search/search-create-series.html.tmpl +++ b/template/en/default/search/search-create-series.html.tmpl @@ -56,7 +56,7 @@ <input type="hidden" name="action" value="create"> <input type="hidden" name="token" value="[% issue_hash_token(['create-series']) FILTER html %]"> -<script type="text/javascript"> +<script> document.chartform.category[0].selected = true; catSelected(); checkNewState(); diff --git a/template/en/default/search/search-report-graph.html.tmpl b/template/en/default/search/search-report-graph.html.tmpl index b7e7b59c8..df9c9e8ad 100644 --- a/template/en/default/search/search-report-graph.html.tmpl +++ b/template/en/default/search/search-report-graph.html.tmpl @@ -46,7 +46,7 @@ var queryform = "reportform" [% terms.bugs %] using the rest of the form. </p> -<script type="text/javascript"><!-- +<script><!-- [%# The Y-axis fields are not used for pie charts %] function chartTypeChanged() { // format[2] is the pie chart radio button diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl index 7e5de2c4a..79b5b2932 100644 --- a/template/en/default/search/search-specific.html.tmpl +++ b/template/en/default/search/search-specific.html.tmpl @@ -100,7 +100,7 @@ for "crash secure SSL flash". <td> <input name="content" size="60" id="content" value="[% default.content.0 FILTER html %]"> - <script type="text/javascript"> <!-- + <script> <!-- document.forms['queryform'].content.focus(); // --> </script> |