[Libreoffice-commits] .: bug/bug bug/bug.xhtml

Loic Dachary loic at kemper.freedesktop.org
Sat Oct 8 02:07:58 PDT 2011


 bug/bug.xhtml   |    2 ++
 bug/bug/bug.js  |    2 ++
 bug/bug/skin.js |    1 -
 3 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 2d66c0d00b18e93dcf7bf80bdb4e581bd654de37
Author: Loic Dachary <loic at dachary.org>
Date:   Sat Oct 8 11:07:20 2011 +0200

    include the user agent in the bug description template

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();


More information about the Libreoffice-commits mailing list