diff options
Diffstat (limited to 'template/en/default')
-rw-r--r-- | template/en/default/attachment/createformcontents.html.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/global/header.html.tmpl | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/template/en/default/attachment/createformcontents.html.tmpl b/template/en/default/attachment/createformcontents.html.tmpl index 41a02a913..61ddceac3 100644 --- a/template/en/default/attachment/createformcontents.html.tmpl +++ b/template/en/default/attachment/createformcontents.html.tmpl @@ -37,7 +37,8 @@ <em>Enter the path to the file on your computer</em> (or <a id="attachment_data_controller"> paste text as attachment</a>).<br> - <input type="file" id="data" name="data" size="50"> + <input type="file" id="data" name="data" size="50" aria-errormessage="data-error" aria-invalid="false"> + <div id="data-error" class="warning" aria-live="assertive"><div> </td> </tr> <tr class="attachment_text_field"> @@ -69,7 +70,7 @@ [%# Reset this whenever the page loads so that the JS state is up to date %] <script [% script_nonce FILTER none %]> $(function() { - $("#file").on("change", function() { + $("#data").on("change", function() { DataFieldHandler(); // Fire event to keep take-bug in sync. $("#ispatch").change(); diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 771fa801b..492d70a24 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -106,6 +106,7 @@ [%- js_BUGZILLA = { param => { + maxattachmentsize => Param('maxattachmentsize'), maxusermatches => Param('maxusermatches'), splinter_base => Param('splinter_base'), }, |