Bug 300494 - capture User Agent as well.

git-svn-id: svn://10.0.0.236/trunk@176086 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gerv%gerv.net 2005-07-14 09:38:24 +00:00
parent 171793809a
commit f7876be31f
2 changed files with 14 additions and 1 deletions

View File

@ -118,8 +118,17 @@ function onLoad() {
</td>
</tr>
</table>
<input type="hidden" name="useragent" id="useragent" value=""/>
<script type="text/javascript">
if (document.getElementById)
{
var useragent = navigator.userAgent;
document.getElementById("useragent").setAttribute("value", useragent);
}
</script>
<input type="hidden" name="action" value="submit"/>
<input type="hidden" name="stylesheet" value="[% stylesheet FILTER html %]"/>
</form>
<p>

View File

@ -31,3 +31,7 @@ Summary: [% form.subject %]
Comments:
[%+ form.comments %]
[% IF form.useragent %]
Browser Details: [% form.useragent %]
[% END %]