diff options
author | Loic Dachary <loic@dachary.org> | 2011-10-08 11:07:20 +0200 |
---|---|---|
committer | Loic Dachary <loic@dachary.org> | 2011-10-08 11:07:20 +0200 |
commit | 2d66c0d00b18e93dcf7bf80bdb4e581bd654de37 (patch) | |
tree | 9732cf2276f4ec411e88bee5ffe3fe08bacf1a91 | |
parent | 92b15e78a0b5e02ddecd54b22a0684ee95afcd1b (diff) |
include the user agent in the bug description template
-rw-r--r-- | bug/bug.xhtml | 2 | ||||
-rw-r--r-- | bug/bug/bug.js | 2 | ||||
-rw-r--r-- | bug/bug/skin.js | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/bug/bug.xhtml b/bug/bug.xhtml index 185bf6d..2499e67 100644 --- a/bug/bug.xhtml +++ b/bug/bug.xhtml @@ -156,6 +156,8 @@ Steps to reproduce: Current behavior: Expected behavior: + +Platform (if different than the browser): </textarea> </div> </div> diff --git a/bug/bug/bug.js b/bug/bug/bug.js index 9df6daf..955d408 100644 --- a/bug/bug/bug.js +++ b/bug/bug/bug.js @@ -157,6 +157,8 @@ var element = $('.state_description'); var template = $(".long", element).val(); if(!element.hasClass('initialized')) { + template = template + '\nBrowser: ' + window.navigator.userAgent; + $(".long", element).val(template); var validate = function() { if($(".short", element).val().length > 3 && $(".long", element).val() != template) { diff --git a/bug/bug/skin.js b/bug/bug/skin.js index 8c41e2d..5de87ab 100644 --- a/bug/bug/skin.js +++ b/bug/bug/skin.js @@ -38,7 +38,6 @@ version(); $('.state_version .choice:nth(2)').click(); $('.state_description .short').val('12'); - $('.state_description .long').val('123456'); } function submit() { description(); |