bug/bug/bug.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 757202388faaab008748e8cc52987b93f75f920f
Author: Loic Dachary <l...@dachary.org>
Date:   Thu Sep 22 12:34:33 2011 +0200

    do not use text() to retrieve the value of the component as it may contain 
a line break

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index a3c5e1a..b65927e 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -179,7 +179,7 @@
             if(!element.hasClass('initialized')) {
                 $('.go', element).click(function() {
                     var version = $('.state_version .chosen').attr('data');
-                    var component = $('.state_component .chosen').text();
+                    var component = $('.state_component 
.chosen').attr('data').replace('_',' ');
                     var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
                     var comment = $('.state_description .long').val();
                     $("body").css("cursor", "progress");
_______________________________________________
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to