diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-01-25 21:04:07 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-01-25 21:04:21 +0100 |
commit | 6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5 (patch) | |
tree | 28aea39d85e63a901744c6319f6dc06884040daf /extensions/Needinfo/template/en | |
parent | ec963661fb29c191fec645a956cbddc670cfa3da (diff) | |
download | bugzilla-6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5.tar.gz bugzilla-6a727b70a9f7d3deb690dffd818d7bb5e9eb7bf5.tar.xz |
Bug 1286290 - CSP compliant bug modal
Diffstat (limited to 'extensions/Needinfo/template/en')
-rw-r--r-- | extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl index 4d2a39f38..915379316 100644 --- a/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl +++ b/extensions/Needinfo/template/en/default/bug/needinfo.html.tmpl @@ -39,7 +39,7 @@ RETURN UNLESS needinfo_flagtype; %] -<script> +<script [% script_nonce FILTER none%]> [% IF needinfo_flags.size > 0 %] $(function() { [%# Displays NEEDINFO tag in bug header %] @@ -139,12 +139,11 @@ $(function() { $('#needinfo').change(); } - function needinfo_from_changed() { - $('#needinfo').prop('checked', $('#needinfo_from').val() !== ''); - } - $(function() { needinfo_init(); + $(".needinfo_from_changed").on("change", function (event) { + $("#needinfo").prop("checked", $("#needinfo_from").val() !== ''); + }); }); [% END %] </script> @@ -227,7 +226,7 @@ $(function() { value => "" size => 30 multiple => 5 - onchange => "needinfo_from_changed()" + classes => ["needinfo_from_changed"] field_title => "Enter one or more comma separated users to request more information from" %] </span> |