[Libreoffice-commits] .: bug/bug

2012-02-22 Thread Thorsten Behrens
 bug/bug/bug.js  |9 +
 bug/bug/test.js |5 +++--
 2 files changed, 8 insertions(+), 6 deletions(-)

New commits:
commit 8a19cf7ea488f6b16989e7e49d18bef2452785af
Author: Kate Goss 
Date:   Sat Feb 18 20:49:17 2012 +

fdo#42006: Make Bugzilla Assistant tests pass in IE8

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index b2e4ed6..d670092 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -208,10 +208,11 @@
 element.show();
 }
 },
-
-state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE=\"\+2\">([^<]*)/i, // bugzilla < 4
- /\s+([^<]+)/i], 
// bugzilla >= 4
-state_submit_success_regexp: /TITLE>Bug ([0-9]+)/i,
+// Making the double quotes optional caters for differing browser
+// behaviour with jquery .text() - IE8 removes double quotes.
+state_submit_error_regexps: [/CLASS="?THROW_ERROR"?>([^<]*)/i, /FONT 
SIZE=\"?\+2\"?>([^<]*)/i, // bugzilla < 4
+ /\s+([^<]+)/i],   
  // bugzilla >= 4
+state_submit_success_regexp: /Bug ([0-9]+)/i,
 state_submit_element: 'html',
 
 state_submit: function() {
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 93daea0..73b194b 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -274,12 +274,13 @@ test("state_submit", function() {
 
 $.bug.state_submit_element = 'div'; // because  can't be inserted in 
the dom
 
-$('#submissionoutput').html('Bug ' + bug + ' 
Submitted');
+//  cannot be inserted by IE8
+$('#submissionoutput').html('Bug ' + bug + ' 
Submitted');
 $('#submissionoutput').load();
 equal($('.bug', element).text(), bug, 'bug number');
 ok(!element.hasClass('inprogress'), 'is no longer progress');
 
-var error = ' ERROR ';
+var error = 'ERROR';
 equal($('.error').text(), '', 'error is not set');
 
 // make sure you enclose the useful elements with  ... 

___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-12-13 Thread Petr Mladek
 bug/bug/bug.js |1 -
 1 file changed, 1 deletion(-)

New commits:
commit da41f6063376c393399d1d62d609f9ede2affdf7
Author: Nino 
Date:   Tue Dec 13 20:02:28 2011 +0100

fix the last commit in bugreport assistant

problem caused by Petr Mladek who commited it wrong way

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 294bc79..b2e4ed6 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -283,7 +283,6 @@
 var lines = data.split('\n');
 var bug_urls = [];
 for(var i = 1; i < lines.length; i++) {
-bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
 bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
 }
 $('.related_bugs').html(bug_urls.join(''));
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-12-13 Thread Petr Mladek
 bug/bug/bug.js |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 84dfe9a9cbe15a9a83e201fbd800f78694f7e05f
Author: Nino 
Date:   Tue Dec 13 19:59:13 2011 +0100

Show related bug reports in a new widnow (fdo#41157)

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 47a88b8..294bc79 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -284,6 +284,7 @@
 var bug_urls = [];
 for(var i = 1; i < lines.length; i++) {
 bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
+bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
 }
 $('.related_bugs').html(bug_urls.join(''));
 });
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-12-03 Thread Korrawit Pruegsanusak
 bug/bug/test.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0cae07f8d74b1c14967accee729c8af3cd256f5a
Author: Korrawit Pruegsanusak 
Date:   Sat Dec 3 16:44:24 2011 +0700

Also make the test successful after fixing create-account-link

diff --git a/bug/bug/test.js b/bug/bug/test.js
index 0f3ef00..93daea0 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -115,7 +115,7 @@ test("state_signin", function() {
 $.bug.state_component = function() { ok(true, 'state_component'); };
 $.bug.state_signin();
 equal($('.login-link').attr('href'), '/');
-equal($('.create-account-link').attr('href'), '/enter_bug.cgi');
+equal($('.create-account-link').attr('href'), '/createaccount.cgi');
 equal($('.signin').css('display'), 'block');
 // fail to login, shows error
 equal($('.error-container').css('display'), 'none', 'no error');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-11-27 Thread Korrawit Pruegsanusak
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 535d0a62962dab98fe4ec6caecd063890496bf01
Author: Korrawit Pruegsanusak 
Date:   Tue Oct 25 14:45:23 2011 +0700

'Create account' link fixed

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index a875eaf..47a88b8 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -102,7 +102,7 @@
 });
 });
 $('.login-link', element).attr('href', $.bug.url + '/');
-$('.create-account-link', element).attr('href', $.bug.url + 
'/enter_bug.cgi');
+$('.create-account-link', element).attr('href', $.bug.url + 
'/createaccount.cgi');
 $.bug.current_step('signin');
 element.show();
 },
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-11-03 Thread Loic Dachary
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7d5caeb31b3bb42d2efe48f6bab1695a110ce637
Author: Loic Dachary 
Date:   Thu Nov 3 10:39:02 2011 +0100

https://bugs.freedesktop.org/show_bug.cgi?id=42525
Add missing $.bug.url when building the related bugs urls.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 388f04f..a875eaf 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -283,7 +283,7 @@
 var lines = data.split('\n');
 var bug_urls = [];
 for(var i = 1; i < lines.length; i++) {
-bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
+bug_urls.push(lines[i].replace(/([0-9]*),"(.*)"/,'$2'));
 }
 $('.related_bugs').html(bug_urls.join(''));
 });
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-10-26 Thread Loic Dachary
 bug/bug.xhtml |2 +-
 bug/bug/bug.css   |4 ++--
 bug/bug/bug.js|   21 +++--
 bug/bug/skin.js   |1 +
 bug/bug/test.html |   10 +++---
 bug/bug/test.js   |   36 
 6 files changed, 54 insertions(+), 20 deletions(-)

New commits:
commit c93dc2d174889d671664f2cce00b6259cfd51522
Author: Loic Dachary 
Date:   Wed Oct 26 13:42:26 2011 +0200

Implement a cross browser method to ensure that the file select will always 
show when the user clicks on a styled  element. This is done 
by moving the input element so that its rightmost part (which contains the 
browser button) is always under the mouse. The user won't be able to reach the 
area when the filename is displayed and this will solve the issues that arise 
when a browser accepts user input or sets focus in it.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index ff75ae1..5df6ec3 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -185,7 +185,7 @@ Platform (if different from the browser):
 Optionally attach a document or a 
screenshot. 
 
 
- 
+ 
  

Browse
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index a2aa76d..34e4377 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -486,6 +486,7 @@ body {
 
 .state_attach .attach-file {
 position: relative;
+overflow: hidden;
 height: 38px;
 margin-left: 5px;
 }
@@ -517,9 +518,8 @@ body {
 filter:alpha(opacity: 0);
 opacity: 0;
 z-index: 2;
-width: 400px;
+width: 350px;
 height: 39px;
-size: 150;
 }
 
 .state_attach .attach-file input[type='text'] {
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 555cb07..388f04f 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -189,15 +189,15 @@
 state_attach: function() {
 var element = $('.state_attach');
 if(!element.hasClass('initialized')) {
-if($.browser.msie) {
-// ie allow the input field to get focus, presumably to 
-// type the filename. launch the browser instead.
-$("input[type='file']", element).focus(function() {
-$(this).click();
-$(this).blur(); // loose focus so that no caret is 
shown even when in caret browsing
-});
-}
-$("input[type='file']", element).change(function() {
+var file_input = $("input[type='file']", element);
+var container = $('.attach-file', element);
+container.mousemove(function(e) {
+file_input.css({
+   'left': e.pageX - container.offset().left - 
file_input.outerWidth() + 10,
+   'top': e.pageY - container.offset().top - 10
+   });
+});
+file_input.change(function() {
 // 
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
 // in a nutshell : deal with it, it won't go away
 var path = $(this).val().replace("C:\\fakepath\\","");
@@ -209,7 +209,8 @@
 }
 },
 
-state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE=\"\+2\">([^<]*)/i],
+state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE=\"\+2\">([^<]*)/i, // bugzilla < 4
+ /\s+([^<]+)/i], 
// bugzilla >= 4
 state_submit_success_regexp: /TITLE>Bug ([0-9]+)/i,
 state_submit_element: 'html',
 
diff --git a/bug/bug/skin.js b/bug/bug/skin.js
index 8a51ea1..1399fac 100644
--- a/bug/bug/skin.js
+++ b/bug/bug/skin.js
@@ -19,6 +19,7 @@
 
   $.skin = function() {
   $('.skin').show();
+  $.bug.frame();
   $.bug.compatibility();
   function component() {
   $.bug.state_component();
diff --git a/bug/bug/test.html b/bug/bug/test.html
index 8014e52..54f2665 100644
--- a/bug/bug/test.html
+++ b/bug/bug/test.html
@@ -152,9 +152,13 @@
 
 
   
-  
-  
-  
+  
+   
+   
+ 
+ Browse
+   
+  
 
 
  
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 5ea1f8a..0f3ef00 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -232,7 +232,7 @@ test("state_description", function() {
 });
 
 test("state_submit", function() {
-expect(27);
+expect(30);
 
 var state_success = $.bug.state_success;
 $.bug.state_success = function() { ok(true, 'state_success'); };
@@ -282,14 +282,18 @@ test("state_submit", function() {
 var error = ' ERROR ';
 equal($('.error').text(), '', 'error is not set');
 
-$(['   
  ' + error + '  ', 
'' + error + 
'']).each(function(index,

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

2011-10-24 Thread Loic Dachary
 bug/bug.xhtml |4 ++--
 bug/bug/bug.js|2 ++
 bug/bug/test.html |2 ++
 bug/bug/test.js   |5 -
 4 files changed, 10 insertions(+), 3 deletions(-)

New commits:
commit 5c51c26990b27e262fbe8768d82ee66d1f5028b0
Author: Loic Dachary 
Date:   Mon Oct 24 18:20:23 2011 +0200

https://bugs.freedesktop.org/show_bug.cgi?id=42156
The href in the signin page are created using the $.bug.url prefix, which 
may be different from /
It was previously assumed that the bug submission assistant runs as a 
standalone server and / was bugzilla. All references have been made relative to 
the $.bug.url but these being hardcoded in the bugt.xhtml file were overlooked.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 415f2eb..ff75ae1 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -98,7 +98,7 @@
 
   

- Please login using your bugzilla account.
+ Please login using your bugzilla account.


  User:
@@ -107,7 +107,7 @@
   
  Sign in
   
-   or create an 
account
+   or create an 
account
   

  
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 751414f..555cb07 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -101,6 +101,8 @@
 $.bug.state_component();
 });
 });
+$('.login-link', element).attr('href', $.bug.url + '/');
+$('.create-account-link', element).attr('href', $.bug.url + 
'/enter_bug.cgi');
 $.bug.current_step('signin');
 element.show();
 },
diff --git a/bug/bug/test.html b/bug/bug/test.html
index 40cc326..8014e52 100644
--- a/bug/bug/test.html
+++ b/bug/bug/test.html
@@ -46,6 +46,8 @@
 
   
   
+  
+  
   Sign in
 
 
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 83e4af5..5ea1f8a 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -31,6 +31,7 @@ test("frame", function() {
 equal($.bug.url, '');
 $.bug.frame();
 equal($.bug.url, bugzilla_url);
+$.bug.url = '';
 });
 
 test("ajax", function() {
@@ -95,7 +96,7 @@ test("lookup_result", function() {
 });
 
 test("state_signin", function() {
-expect(9);
+expect(11);
 
 equal($('.signin').css('display'), 'none');
 var user = 'gooduser';
@@ -113,6 +114,8 @@ test("state_signin", function() {
 var state_component = $.bug.state_component;
 $.bug.state_component = function() { ok(true, 'state_component'); };
 $.bug.state_signin();
+equal($('.login-link').attr('href'), '/');
+equal($('.create-account-link').attr('href'), '/enter_bug.cgi');
 equal($('.signin').css('display'), 'block');
 // fail to login, shows error
 equal($('.error-container').css('display'), 'none', 'no error');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-20 Thread Loic Dachary
 bug/bug/bug.js |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit dc899ac7c9a57f3ebcf2fda53ecca2fef624e20b
Author: Loic Dachary 
Date:   Thu Oct 20 16:46:41 2011 +0200

fix quotes in regexps surrounded by // instead of ''

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 545b825..751414f 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -80,7 +80,7 @@
 url: '',
 
 state_signin_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i],
-state_signin_success_regexp: /LOG&NBSP;OUT([^<]*)/i,
+state_signin_success_regexp: /LOG&NBSP;OUT<\/A>([^<]*)/i,
 
 state_signin: function() {
 var element = $('.signin');
@@ -207,7 +207,7 @@
 }
 },
 
-state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE="\\+2">([^<]*)/i],
+state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE=\"\+2\">([^<]*)/i],
 state_submit_success_regexp: /TITLE>Bug ([0-9]+)/i,
 state_submit_element: 'html',
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-20 Thread Loic Dachary
 bug/bug/bug.js |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit e20dcb0f54d8b0634943051a644baec358e26ed0
Author: Loic Dachary 
Date:   Thu Oct 20 16:40:06 2011 +0200

Lookup in the HTML output using case insensitive match because IE8 converts 
element names to upper case where firefox converts them to lowercase.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index dad6af5..545b825 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -79,8 +79,8 @@
 
 url: '',
 
-state_signin_error_regexps: ['class="throw_error">([^<]*)'],
-state_signin_success_regexp: 'Log out([^<]*)',
+state_signin_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i],
+state_signin_success_regexp: /LOG&NBSP;OUT([^<]*)/i,
 
 state_signin: function() {
 var element = $('.signin');
@@ -207,8 +207,8 @@
 }
 },
 
-state_submit_error_regexps: ['class="throw_error">([^<]*)', 'font 
size="\\+2">([^<]*)'],
-state_submit_success_regexp: 'title>Bug ([0-9]+)',
+state_submit_error_regexps: [/CLASS="THROW_ERROR">([^<]*)/i, /FONT 
SIZE="\\+2">([^<]*)/i],
+state_submit_success_regexp: /TITLE>Bug ([0-9]+)/i,
 state_submit_element: 'html',
 
 state_submit: function() {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-10-20 Thread Loic Dachary
 bug/bug.xhtml  |   14 +-
 bug/bug/bug.js |1 +
 2 files changed, 10 insertions(+), 5 deletions(-)

New commits:
commit 68701097f194b730ff4082bf7be81f10ed81808f
Author: Loic Dachary 
Date:   Thu Oct 20 11:58:41 2011 +0200

hide the submission form using visibility: hidden instead of display: none 
so that the feedback does not need scrolling.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 534053e..415f2eb 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -205,13 +205,17 @@ Platform (if different from the browser):
 
   
 
-  
-The bug report has been successfully submitted.
-You can edit it or add attachments using the 
corresponding bugzilla page.
-  
-
 
 
+  
+
+  
+The bug report has been successfully submitted.
+You can edit it or add attachments using the 
corresponding bugzilla page.
+  
+
+  
+

  Related bug reports
  
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 0e367f0..dad6af5 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -252,6 +252,7 @@
 
 state_success: function() {
 $('.state_submit').hide();
+$('.submission').css('visibility', 'hidden');
 var element = $('.state_success');
 var bug = $('.state_submit .bug').text();
 $('.bug', element).attr('href', $.bug.url + '/show_bug.cgi?id=' + 
bug);
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-19 Thread Loic Dachary
 bug/bug/bug.js  |4 +---
 bug/bug/skin.js |1 +
 bug/bug/test.js |3 +--
 3 files changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 70ac5ff7ba049773b7a965e3b399df0b3c64a34a
Author: Loic Dachary 
Date:   Wed Oct 19 23:03:18 2011 +0200

Do not use scrollTop to ensure the feedback is visible. Replace the submit 
button with the feedback instead because the submit button has to be visible to 
the user otherwise it would not be able to click it.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index ad3f3d5..2acf8c6 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -224,8 +224,6 @@
 var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
 var comment = $('.state_description .long').val();
 $("body").css("cursor", "progress");
-// 
http://stackoverflow.com/questions/1852518/how-to-get-scrolltop-of-an-iframe
-$('html, body').animate({scrollTop: '0px'}, 300);
 $('input[name="component"]', form).val(component);
 $('input[name="version"]', form).val(version);
 $('input[name="short_desc"]', form).val(short_desc);
@@ -250,7 +248,7 @@
 },
 
 state_success: function() {
-$('.submission').hide();
+$('.state_submit').hide();
 var element = $('.state_success');
 var bug = $('.state_submit .bug').text();
 $('.bug', element).attr('href', $.bug.url + '/show_bug.cgi?id=' + 
bug);
diff --git a/bug/bug/skin.js b/bug/bug/skin.js
index 5de87ab..8a51ea1 100644
--- a/bug/bug/skin.js
+++ b/bug/bug/skin.js
@@ -60,6 +60,7 @@
   } else if(location.search.indexOf('skin=submit') >= 0) {
   submit();
   } else if(location.search.indexOf('skin=complete') >= 0) {
+  submit();
   $.bug.state_success();
   }
   };
diff --git a/bug/bug/test.js b/bug/bug/test.js
index b470292..83e4af5 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -297,7 +297,7 @@ test("state_submit", function() {
 });
 
 test("state_success", function() {
-expect(5);
+expect(4);
 
 var bug = '4242';
 var element = $('.state_success');
@@ -306,7 +306,6 @@ test("state_success", function() {
 $('.state_submit .bug').text(bug);
 $.bug.state_success();
 equal(element.css('display'), 'block');
-equal($('.submission').css('display'), 'none');
 ok($('.bug', element).attr('href').indexOf(bug) > 0, 'bug found');
 });
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-19 Thread Loic Dachary
 bug/bug/frame.html |2 +-
 bug/bug/test.js|6 --
 2 files changed, 5 insertions(+), 3 deletions(-)

New commits:
commit 1db346445ff8298c5e715f7763d44d0c1dd6b094
Author: Loic Dachary 
Date:   Wed Oct 19 20:24:19 2011 +0200

Compute the bugzilla_url based on the protocol and hostname of the 
enclosing document. The same snippet can be used to define the bugzilla url for 
https://libreoffice.org/ and https://www.libreoffice.org/ with a single line.

diff --git a/bug/bug/frame.html b/bug/bug/frame.html
index fd8920c..d46cbae 100644
--- a/bug/bug/frame.html
+++ b/bug/bug/frame.html
@@ -20,7 +20,7 @@
 Load bug.html in a frame
   
   
-var bugzilla_url = '/bugzilla';
+var bugzilla_url = location.protocol + '//' + location.hostname + 
'/bugzilla';
  
   
 
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 98c1f65..b470292 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -17,9 +17,11 @@
 module("bug");
 
 test("frame", function() {
-expect(2);
+expect(3);
+
+var bugzilla_url = location.protocol + '//' + location.hostname;
 
-bugzilla_url = 'BUGZILLA_URL';
+equal(location.href.indexOf(bugzilla_url), 0, bugzilla_url);
 
 $.bug.window = {
 top: 'something',
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-19 Thread Loic Dachary
 bug/bug/bug.js  |2 +-
 bug/bug/test.js |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 22a4a09c366b30d7ea938a2acb93bd123a369b0f
Author: Loic Dachary 
Date:   Wed Oct 19 19:38:19 2011 +0200

apply submit and action to the form instead of the enclosing div

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 88fff59..ad3f3d5 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -211,7 +211,7 @@
 state_submit: function() {
 var element = $('.state_submit');
 if(!element.hasClass('initialized')) {
-var form = $('.submission_form');
+var form = $('.submission_form form');
 form.attr('action', $.bug.url + '/post_bug.cgi');
 form.submit(function() {
 if($(element).hasClass('inprogress')) {
diff --git a/bug/bug/test.js b/bug/bug/test.js
index d8db7af..98c1f65 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -253,7 +253,7 @@ test("state_submit", function() {
 $('.state_description .long').val(comment);
 
 var bug = '40763';
-var form = $('.submission_form');
+var form = $('.submission_form form');
 
 form.submit(function() {
 ok(element.hasClass('inprogress'), 'is in progress');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-10-08 Thread Loic Dachary
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3df1ced9a67736c9a446c1c226e719a6e61ed1b2
Author: Loic Dachary 
Date:   Sat Oct 8 12:17:35 2011 +0200

add missing ;

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index bea93ee..1086288 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -194,7 +194,7 @@
 $("input[type='file']", element).change(function() {
 // 
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
 // in a nutshell : deal with it, it won't go away
-var path = $(this).val().replace("C:\\fakepath\\","")
+var path = $(this).val().replace("C:\\fakepath\\","");
 $("input[name='ignored']", element).val(path);
 });
 $.bug.current_step('attach');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-10-08 Thread Loic Dachary
 bug/bug.xhtml   |2 +-
 bug/bug/bug.css |5 +
 bug/bug/bug.js  |8 +++-
 bug/bug/icons/icon-selected.png |binary
 bug/bug/test.html   |4 
 bug/bug/test.js |   14 +-
 6 files changed, 30 insertions(+), 3 deletions(-)

New commits:
commit 349ec9598f0d2f0bf42e4d231554903df6f6f2bc
Author: Loic Dachary 
Date:   Sat Oct 8 12:16:02 2011 +0200

https://bugs.freedesktop.org/show_bug.cgi?id=41564

Suggestion: keep the faded green outline, perhaps changing the color to a 
blue
to indicate it's been selected.

In the same vein, if the user selects one, then mouses over another icon, 
the
description should update to the newly moused-over icon, but return to the
selected icon after the mouse leaves the icon area.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 2499e67..d17eec2 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -120,7 +120,7 @@
   
   
 
-  
+  
 
 &component_comments;
   
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 7440fc6..a2aa76d 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -365,6 +365,11 @@ body {
 background: url('icons/icon-hover.png') no-repeat;
 }
 
+.state_component img.selected {
+cursor: pointer;
+background: url('icons/icon-selected.png') no-repeat;
+}
+
 /* state_subcomponent */
 .version_and_subcomponent > div {
 display: inline-block;
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 964af78..bea93ee 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -108,19 +108,25 @@
 $.bug.current_step('component');
 element.show();
 $('.select', element).select();
-$('.select .choice', element).hover(function() {
+$('.select .choice, img', element).hover(function() {
 var component = $(this).attr('data');
 $('.comment', element).hide();
 $('.comment.' + component, element).show();
 });
 $('.select .choice', element).click(function() {
 $(this).mouseenter();
+var component = $(this).attr('data');
+$('img', element).removeClass('selected');
+$('img[data="' + component + '"]').addClass('selected');
 $.bug.state_subcomponent();
 });
 $('img', element).click(function() {
 var component = $(this).attr('data');
 $(".select .choice[data='" + component + "']", 
element).click();
 });
+$('.components_icons').mouseleave(function() {
+$('img.selected', element).mouseenter();
+});
 },
 
 state_subcomponent: function() {
diff --git a/bug/bug/icons/icon-selected.png b/bug/bug/icons/icon-selected.png
new file mode 100644
index 000..8f1ff0e
Binary files /dev/null and b/bug/bug/icons/icon-selected.png differ
diff --git a/bug/bug/test.html b/bug/bug/test.html
index 4ce3d62..40cc326 100644
--- a/bug/bug/test.html
+++ b/bug/bug/test.html
@@ -61,6 +61,10 @@
   
 
   
+  
+
+
+  
   
 
 
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 82b5f9d..cb87f93 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -118,7 +118,7 @@ test("state_signin", function() {
 });
 
 test("state_component", function() {
-expect(8);
+expect(15);
 
 var state_subcomponent = $.bug.state_subcomponent;
 $.bug.state_subcomponent = function() { ok(true, 'state_subcomponent'); };
@@ -130,7 +130,19 @@ test("state_component", function() {
 equal($('.component .chosen', element).attr('data'), undefined, 'initialy 
nothing selected');
 equal($('.comment.Formula_editor', element).css('display'), 'none', 
'Formula_editor hidden');
 equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
+equal($('img.selected').length, 0, 'no icon selected');
+// chosing Formula editor updates the comment, selects the icon and moves 
to subcomponent state
 $(".component .choice[data='Formula_editor']", element).click();
+equal($('img[data="Formula_editor"].selected', element).length, 1, 
'Formula editor icon selected');
+equal($('.comment.Formula_editor', element).css('display'), 'block', 
'Formula_editor is visible');
+equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
+// hovering on an icon changes the comment but has no effect on the 
selection
+$('img[data="OTHER"]', element).mouseenter();
+equal($('.comment.Formula_editor', element).css('display'), 'none', 
'Formula_editor hidden');
+equal($('.comment.OTHER', element).css('display'), 'block', 'OTHER is 
visible');
+equal($('.component .chosen', ele

[Libreoffice-commits] .: bug/bug

2011-10-08 Thread Loic Dachary
 bug/bug/bug.js |5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 38fe6a669b4fa44eb791aae87cc7776aa4b44e73
Author: Loic Dachary 
Date:   Sat Oct 8 11:27:35 2011 +0200

http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
in a nutshell : deal with it, it won't go away

The original plan was to just have the filename. Unfortunately, it turns
out that if you do that, there are certain sites that break, because they
expect the path (and they expect a Windows path, no less). This is why
Opera and IE8 return a fake path -- not because HTML5 says to do it. In
fact I made HTML5 say it because they were doing it.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 955d408..964af78 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -186,7 +186,10 @@
 });
 }
 $("input[type='file']", element).change(function() {
-$("input[name='ignored']", element).val($(this).val());
+// 
http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018981.html
+// in a nutshell : deal with it, it won't go away
+var path = $(this).val().replace("C:\\fakepath\\","")
+$("input[name='ignored']", element).val(path);
 });
 $.bug.current_step('attach');
 element.show();
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-10-08 Thread Loic Dachary
 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 
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): 
   
   
 
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();
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-10-06 Thread Loic Dachary
 bug/README.txt |   13 -
 bug/bug.xhtml  |   75 +-
 bug/bug/bug.css|   46 ++
 bug/bug/bug.js |   91 ++--
 bug/bug/jquery.iframe-post-form.js |   92 -
 bug/bug/skin.js|2 
 bug/bug/test.html  |   48 ---
 bug/bug/test.js|   72 
 dev/null   |binary
 9 files changed, 148 insertions(+), 291 deletions(-)

New commits:
commit 87b189e6715a0b1dd2f8b0ba3cf7097e9b211a59
Author: Loic Dachary 
Date:   Thu Oct 6 17:21:32 2011 +0200

Fixes https://freedesktop.dachary.org/show_bug.cgi?id=41300

The attachment is proposed before submitting the bug report instead of 
after submitting the form. There is only one submission instead of two, which 
is less confusing. Furthermore, the submission is protected against double 
click. The description field is added to the attachment so that it no longer 
claims to be limited to screenshots.

diff --git a/bug/README.txt b/bug/README.txt
index d3536b3..9cd1cc9 100644
--- a/bug/README.txt
+++ b/bug/README.txt
@@ -36,19 +36,6 @@ It contains parts:
  * Date: Thu Jun 30 14:16:56 2011 -0400
  */
 
-/**
- * jQuery plugin for posting form including file inputs.
- * 
- * Copyright (c) 2010 - 2011 Ewen Elder
- *
- * Licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- * @author: Ewen Elder  
- * @version: 1.1.1 (2011-07-29)
-**/
-
 /*
  * QUnit - A JavaScript Unit Testing Framework
  * 
diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index fae7c4e..add05de 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -28,7 +28,6 @@
 Bug Submission Assistant
 
 
-
 
 
 
@@ -70,7 +69,6 @@
 4Version
 5Description
 6Submit
-7Attach
   
   
 http://wiki.documentfoundation.org/Bug_Submission_Assistant";>Bug 
Submission Assistant is copyright (C) 2011 Loic Dachary published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+. 
Download the sources with git clone http://cgit.freedesktop.org/libreoffice/website";>http://cgit.freedesktop.org/libreoffice/website.
@@ -162,10 +160,49 @@ Expected behavior:
   
 
 
-
- Submit
-  
-   
+
+
+
+  
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+  
+  
+Optionally attach a document or a 
screenshot. 
+
+
+ 
+ 
+   
+   Browse
+ 
+
+  
+  
+Explain what is attached:
+
+  
+
+
+ 
+
+  
+  
+
+  
+
 

  Related bug reports
@@ -183,32 +220,6 @@ Expected behavior:
 You can edit it or add attachments using the 
corresponding bugzilla page.
   
 
-  
-
-  If you have a screenshot illustrating the problem, you can 
upload it here.
-
-   
- 
- 
- 
- 
- 
-  
-
- 
- 
-   
-   Browse
- 
-
-
- 
-
-  
-   
-   
- 
-
 
   
 
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 07304ff..7440fc6 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -405,11 +405,16 @@ body {
 }
 
 /* state_submit */
+#submissionoutput {
+display: none;
+}
+
 .state_submit {
 display: none;
 }
 
-.state_submit .go {
+.state_submit input[type='submit'] {
+border: 0;
 margin-left: auto;
 margin-right: 40px;
 background: url('images/submit.png') no-repeat;
@@ -463,7 +468,6 @@ body {
 /* state_attach */
 .state_attach {
 display: none;
-text-align: center;
 }
 
 .state_attach .attach-invite {
@@ -471,42 +475,20 @@ body {
 padding: 10px;
 }
 
-.state_attach .attach-file-and-submit {
-text-align: right;
-vertical-align: top;
-width: 79%;
-}
-
 .state_attach .attach-file-style > div {
 display: inline-block;
 }
 
-.state_attach .attach-submit input {
-background: url('

[Libreoffice-commits] .: bug/bug

2011-09-29 Thread Loic Dachary
 bug/bug/bug.js  |6 ++
 bug/bug/test.js |5 -
 2 files changed, 10 insertions(+), 1 deletion(-)

New commits:
commit 07706f06bf47fde2dce9b853583afa3b577f00a5
Author: Loic Dachary 
Date:   Thu Sep 29 11:15:38 2011 +0200

Prevent double submission of the form.
  https://freedesktop.dachary.org/show_bug.cgi?id=41269
  https://freedesktop.dachary.org/show_bug.cgi?id=41270
are most likely examples of what happens when the form is submitted twice 
because of a double click.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index d391adb..3429bcf 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -179,6 +179,11 @@
 var element = $('.state_submit');
 if(!element.hasClass('initialized')) {
 $('.go', element).click(function() {
+if($(element).hasClass('inprogress')) {
+return;
+} else {
+$(element).addClass('inprogress');
+}
 var version = $('.state_version .chosen').attr('data');
 var component = $('.state_component 
.chosen').attr('data').replace('_',' ');
 var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
@@ -199,6 +204,7 @@
 comment: comment,
 status_whiteboard: 'BSA'
 }).pipe(function(data) {
+$(element).removeClass('inprogress');
 $("body").css("cursor", "default");
 return $.bug.lookup_result(data,

$.bug.state_submit_error_regexps,
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 55db48c..56f0ddb 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -200,7 +200,7 @@ test("state_description", function() {
 });
 
 test("state_submit", function() {
-expect(14);
+expect(16);
 
 var state_success = $.bug.state_success;
 $.bug.state_success = function() { ok(true, 'state_success'); };
@@ -226,6 +226,8 @@ test("state_submit", function() {
 $('.state_description .long').val(comment);
 var bug = '40763';
 $.bug.ajax = function(type, url, data) {
+ok(element.hasClass('inprogress'), 'is in progress');
+$('.go', element).click(); // noop
 if(data.component == component_text &&
data.version == version &&
data.short_desc == subcomponent + ': ' + short_desc &&
@@ -235,6 +237,7 @@ test("state_submit", function() {
 };
 $('.go', element).click();
 equal($('.bug', element).text(), bug, 'bug number');
+ok(!element.hasClass('inprogress'), 'is no longer progress');
 
 var error = ' ERROR ';
 equal($('.error').text(), '', 'error is not set');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-27 Thread Loic Dachary
 bug/bug/bug.js  |3 ++-
 bug/bug/test.js |1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit af1afb03f3c1fa8a62e913e287bed4c2f26243b9
Author: Loic Dachary 
Date:   Tue Sep 27 14:16:58 2011 +0200

Do not change the component comment when hovering on an image component.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c5966f8..d391adb 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -108,12 +108,13 @@
 $.bug.current_step('component');
 element.show();
 $('.select', element).select();
-$('.select .choice, img', element).hover(function() {
+$('.select .choice', element).hover(function() {
 var component = $(this).attr('data');
 $('.comment', element).hide();
 $('.comment.' + component, element).show();
 });
 $('.select .choice', element).click(function() {
+$(this).mouseenter();
 $.bug.state_subcomponent();
 });
 $('img', element).click(function() {
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 3a60319..55db48c 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -131,7 +131,6 @@ test("state_component", function() {
 equal($('.comment.Formula_editor', element).css('display'), 'none', 
'Formula_editor hidden');
 equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
 $(".component .choice[data='Formula_editor']", element).click();
-$(".component .choice[data='Formula_editor']", element).mouseenter();
 equal($('.comment.Formula_editor', element).css('display'), 'block', 
'Formula_editor is visible');
 equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b57e81b5eaa38a637c89c135f12abfd25a0c8e1c
Author: Loic Dachary 
Date:   Thu Sep 22 20:25:38 2011 +0200

Add status_whiteboard: 'BSA' to identify bugs filled with the bug 
submission assistant

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 7df7db8..c5966f8 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -195,7 +195,8 @@
 component: component,
 version: version,
 short_desc: short_desc,
-comment: comment
+comment: comment,
+status_whiteboard: 'BSA'
 }).pipe(function(data) {
 $("body").css("cursor", "default");
 return $.bug.lookup_result(data,
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit ed1c0df6a9cb3132356c7d1d42ef28f34afd7817
Author: Loic Dachary 
Date:   Thu Sep 22 19:47:58 2011 +0200

browser.msie and not browser.ie

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index f997a47..7df7db8 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -229,7 +229,7 @@
 show();
 
 }});
-if($.browser.ie) {
+if($.browser.msie) {
 // ie allow the input field to get focus, presumably to 
 // type the filename. launch the browser instead.
 $("input[type='file']", element).focus(function() {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |8 
 1 file changed, 8 insertions(+)

New commits:
commit 14ffc3a998cb587a3a19394082c19b21c13ab7f6
Author: Loic Dachary 
Date:   Thu Sep 22 19:38:06 2011 +0200

ie specific code to disable the text part of the input[type=file]
http://stackoverflow.com/questions/3914142/file-input-behaviour-in-ie
explains it in more words:

I have noticed a difference in behaviour between chrome and IE of handling 
file input clicks.

In Chrome, clicking anywhere on the input (text or button bit) triggers the 
file dialogue.

In IE (testing on 7), you have to click on the actual button, not the text 
bit.

The problem is that I'm using a transparent file input on top of a regular 
text box. Clicking on the text box should open the dialog. In Chrome this is 
working fine, as the total size of the input is the same size as my text box.

In IE it doesn't work properly as the user needs to be clicking on the 
actual button part of the transparent file input.

Any ideas of how to fix this??

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c116a3c..f997a47 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -229,6 +229,14 @@
 show();
 
 }});
+if($.browser.ie) {
+// ie allow the input field to get focus, presumably to 
+// type the filename. launch the browser instead.
+$("input[type='file']", element).focus(function() {
+$(this).click();
+$(this).blur(); // loose focus so that no caret is shown 
even when in caret browsing
+});
+}
 $("input[type='file']", element).change(function() {
 $("input[type='text']", element).val($(this).val());
 });
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |6 --
 1 file changed, 6 deletions(-)

New commits:
commit dcd24957f8993ac621a77b08f73e675192e39222
Author: Loic Dachary 
Date:   Thu Sep 22 16:48:36 2011 +0200

Do not handle focus : it won't happen again because the field is large 
enough.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c540157..c116a3c 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -229,12 +229,6 @@
 show();
 
 }});
-// some browsers allow the input field to get focus, presumably to 
-// type the filename. launch the browser instead.
-$("input[type='file']", element).focus(function() {
-$(this).click();
-$(this).blur(); // loose focus so that no caret is shown even 
when in caret browsing
-});
 $("input[type='file']", element).change(function() {
 $("input[type='text']", element).val($(this).val());
 });
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.css   |4 ++--
 bug/bug/images/top-header.png |binary
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit ab87df18242f1ca89b0dceae58c856790396a370
Author: Loic Dachary 
Date:   Thu Sep 22 14:19:50 2011 +0200

replace top header with properly exported image

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 9ad2359..07304ff 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -43,8 +43,8 @@ body {
 
 .header {
 background: url('images/top-header.png') no-repeat top left;
-height: 102px;
-width: 891px;
+height: 103px;
+width: 892px;
 }
 
 .header .title {
diff --git a/bug/bug/images/top-header.png b/bug/bug/images/top-header.png
index 4b59539..2447a69 100644
Binary files a/bug/bug/images/top-header.png and 
b/bug/bug/images/top-header.png differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 6c3b82de674b8659b5317325e55b3f541d52d711
Author: Loic Dachary 
Date:   Thu Sep 22 12:47:10 2011 +0200

move to the top of the page after submit so that the results are not missed 
even when the window height it not large enough

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index b65927e..c540157 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -183,6 +183,7 @@
 var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
 var comment = $('.state_description .long').val();
 $("body").css("cursor", "progress");
+$('html, body').animate({scrollTop: '0px'}, 300);
 $.bug.ajax('POST', '/post_bug.cgi', {
 product: 'LibreOffice',
 bug_status: 'UNCONFIRMED',
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 757202388faaab008748e8cc52987b93f75f920f
Author: Loic Dachary 
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


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js|2 +-
 bug/bug/test.html |8 
 bug/bug/test.js   |   17 +
 3 files changed, 14 insertions(+), 13 deletions(-)

New commits:
commit 43f0a28aa4f6376d4d84445eb43f49f6183a086b
Author: Loic Dachary 
Date:   Thu Sep 22 12:24:30 2011 +0200

The component must be submitted to bugzilla with the space, not converted 
with an underscore.

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 0940d31..a3c5e1a 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').attr('data');
+var component = $('.state_component .chosen').text();
 var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
 var comment = $('.state_description .long').val();
 $("body").css("cursor", "progress");
diff --git a/bug/bug/test.html b/bug/bug/test.html
index 15a9659..9c08786 100644
--- a/bug/bug/test.html
+++ b/bug/bug/test.html
@@ -57,14 +57,14 @@
 
 
   
-BASIC
+Formula editor
 OTHER
   
 
   
   
 
-
+
   
 
 
@@ -74,7 +74,7 @@
 
 
   
-
+
   
 
   (chose one)
@@ -83,7 +83,7 @@
   
 (all other problems)
 Macros
-BASIC
+Formula editor
 IDE
   
 
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 70785f8..3a60319 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -128,11 +128,11 @@ test("state_component", function() {
 $.bug.state_component();
 equal(element.css('display'), 'block');
 equal($('.component .chosen', element).attr('data'), undefined, 'initialy 
nothing selected');
-equal($('.comment.BASIC', element).css('display'), 'none', 'BASIC hidden');
+equal($('.comment.Formula_editor', element).css('display'), 'none', 
'Formula_editor hidden');
 equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
-$(".component .choice[data='BASIC']", element).click();
-$(".component .choice[data='BASIC']", element).mouseenter();
-equal($('.comment.BASIC', element).css('display'), 'block', 'BASIC is 
visible');
+$(".component .choice[data='Formula_editor']", element).click();
+$(".component .choice[data='Formula_editor']", element).mouseenter();
+equal($('.comment.Formula_editor', element).css('display'), 'block', 
'Formula_editor is visible');
 equal($('.comment.OTHER', element).css('display'), 'none', 'OTHER hidden');
 
 $.bug.state_subcomponent = state_subcomponent;
@@ -149,11 +149,11 @@ test("state_subcomponent", function() {
 var element = $('.state_subcomponent');
 equal(element.css('display'), 'none');
 equal($('.active_subcomponent .select', element).length, 0, 'no .select 
element');
-$(".component .chosen").attr('data', 'BASIC');
+$(".component .chosen").attr('data', 'Formula_editor');
 $.bug.state_subcomponent();
 equal($('.active_subcomponent .select', element).length, 1, 'one .select 
element');
 equal(element.css('display'), 'block');
-$(".active_subcomponent .subcomponent .choice[data='BASIC']", 
element).click();
+$(".active_subcomponent .subcomponent .choice[data='Formula_editor']", 
element).click();
 
 $.bug.state_version = state_version;
 $.bug.refresh_related_bugs = refresh_related_bugs;
@@ -213,8 +213,9 @@ test("state_submit", function() {
 equal(element.css('display'), 'block');
 ok(element.hasClass('initialized'), 'is initialized');
 $.bug.state_component();
-var component = 'BASIC';
+var component = 'Formula_editor';
 $(".state_component .choice[data='" + component + "']").click();
+var component_text = $(".state_component .chosen").text();
 var subcomponent = 'SUBCOMPONENT';
 $('.state_subcomponent .active_subcomponent .chosen').attr('data', 
subcomponent);
 $.bug.state_version();
@@ -226,7 +227,7 @@ test("state_submit", function() {
 $('.state_description .long').val(comment);
 var bug = '40763';
 $.bug.ajax = function(type, url, data) {
-if(data.component == component &&
+if(data.component == component_text &&
data.version == version &&
data.short_desc == subcomponent + ': ' + short_desc &&
data.comment == comment) {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-22 Thread Loic Dachary
 bug/bug/bug.js  |   22 ++
 bug/bug/test.js |   35 +++
 2 files changed, 33 insertions(+), 24 deletions(-)

New commits:
commit 38a1d38130f3006af9712d58a64f6b7bb7ea46a4
Author: Loic Dachary 
Date:   Thu Sep 22 12:11:49 2011 +0200

The HTML returned by the submit needs more than one regexp to detect the 
errors. The lookup_result function now accepts a list of error regexps

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 684ccde..0940d31 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -40,8 +40,14 @@
 });
 },
 
-lookup_result: function(data, error_regexp, success_regexp) {
-var error = data.match(error_regexp);
+lookup_result: function(data, error_regexps, success_regexp) {
+var error = null;
+for(var i = 0; i < error_regexps.length; i++) {
+error = data.match(error_regexps[i]);
+if(error !== null) {
+break;
+}
+}
 if(error !== null) {
 $.bug.error_set(error[1]);
 throw error;
@@ -70,7 +76,7 @@
 $('.error-container').show();
 },
 
-state_signin_error_regexp: 'class="throw_error">([^<]*)',
+state_signin_error_regexps: ['class="throw_error">([^<]*)'],
 state_signin_success_regexp: 'Log out([^<]*)',
 
 state_signin: function() {
@@ -84,7 +90,7 @@
 }).pipe(function(data) {
 $("body").css("cursor", "default");
 return $.bug.lookup_result(data,
-   $.bug.state_signin_error_regexp,
+   
$.bug.state_signin_error_regexps,

$.bug.state_signin_success_regexp);
 }).pipe(function(data) {
 $('.username').html(data);
@@ -165,7 +171,7 @@
 }
 },
 
-state_submit_error_regexp: 'font size="\\+2">([^<]*)',
+state_submit_error_regexps: ['class="throw_error">([^<]*)', 'font 
size="\\+2">([^<]*)'],
 state_submit_success_regexp: 'title>Bug ([0-9]+)',
 
 state_submit: function() {
@@ -192,7 +198,7 @@
 }).pipe(function(data) {
 $("body").css("cursor", "default");
 return $.bug.lookup_result(data,
-   
$.bug.state_submit_error_regexp,
+   
$.bug.state_submit_error_regexps,

$.bug.state_submit_success_regexp);
 }).pipe(function(data) {
 $('.bug', element).text(data);
@@ -206,7 +212,7 @@
 }
 },
 
-state_attach_error_regexp: 'class="throw_error">([^<]*)',
+state_attach_error_regexps: ['class="throw_error">([^<]*)'],
 state_attach_success_regexp: 'Attachment #([0-9]+)',
 
 state_attach: function() {
@@ -215,7 +221,7 @@
 $('.bug', element).val(bug);
 $('form', element).iframePostForm({ complete: function(data) {
 var attachment = $.bug.lookup_result(data,
- 
$.bug.state_attach_error_regexp,
+ 
$.bug.state_attach_error_regexps,
  
$.bug.state_attach_success_regexp);
 $('img', element).
 attr('src', '/attachment.cgi?id=' + attachment).
diff --git a/bug/bug/test.js b/bug/bug/test.js
index 86dc7a9..70785f8 100644
--- a/bug/bug/test.js
+++ b/bug/bug/test.js
@@ -54,7 +54,7 @@ test("lookup_result", function() {
 
 // error
 try {
-$.bug.lookup_result('ERR_' + what + '_OR', error_regexp, 
success_regexp);
+$.bug.lookup_result('ERR_' + what + '_OR', [error_regexp], 
success_regexp);
 } catch(e) {
 equal(e[1], what);
 equal($('.error').text(), what);
@@ -65,7 +65,7 @@ test("lookup_result", function() {
 // output is not as expected
 var bugous = 'BUGOUS OUTPUT';
 try {
-$.bug.lookup_result(bugous, error_regexp, success_regexp);
+$.bug.lookup_result(bugous, [error_regexp], success_regexp);
 } catch(ee) {
 equal(ee, bugous);
 ok($('.error').text().indexOf(success_regexp) >= 0, 'error displayed');
@@ -74,7 +74,7 @@ test("lookup_result", function() {
 ok(caught, 'caught exception');
 
 // success
-equal($.bug.lookup_result('SUC_' + value + '_ESS', error_regexp, 
success_regexp), value);
+equal($.bug.lookup_result('SUC_' + value + '_ESS', [error_regexp], 
success_regexp), value);
 });
 
 test("state_signin", function() {
@@ -201,7 +201,7 @@ test("state_description", function() {
 });
 
 test("state_submit", function() {
-expect(11

[Libreoffice-commits] .: bug/bug bug/bug.xhtml bug/bug.xsl bug/component_comments.xsl bug/components.xsl bug/LICENSE bug/query.pl bug/README.txt bug/subcomponents.pl bug/subcomponents.xsl

2011-09-21 Thread Loic Dachary
 bug/LICENSE|  674 +
 bug/README.txt |   62 
 bug/bug.xhtml  |   16 +
 bug/bug.xsl|   16 +
 bug/bug/bug.css|   16 +
 bug/bug/select.css |   16 +
 bug/bug/test.html  |   16 +
 bug/component_comments.xsl |   16 +
 bug/components.xsl |   16 +
 bug/query.pl   |   16 +
 bug/subcomponents.xsl  |   16 +
 11 files changed, 880 insertions(+)

New commits:
commit d26ae176f653b7999dd8435161aedb4fe7fabd7c
Author: Loic Dachary 
Date:   Wed Sep 21 23:09:05 2011 +0200

clarify licensing

diff --git a/bug/LICENSE b/bug/LICENSE
new file mode 100644
index 000..94a9ed0
--- /dev/null
+++ b/bug/LICENSE
@@ -0,0 +1,674 @@
+GNU GENERAL PUBLIC LICENSE
+   Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. 
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+Preamble
+
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+   TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion

[Libreoffice-commits] .: bug/bug

2011-09-21 Thread Loic Dachary
 bug/bug/frame.html |   21 -
 1 file changed, 21 deletions(-)

New commits:
commit 84f3996969e11d496faa3784d5781cbf95b31cdd
Author: Loic Dachary 
Date:   Wed Sep 21 18:04:03 2011 +0200

remove obsolete frame

diff --git a/bug/bug/frame.html b/bug/bug/frame.html
deleted file mode 100644
index a522f14..000
--- a/bug/bug/frame.html
+++ /dev/null
@@ -1,21 +0,0 @@
-http://www.w3.org/1999/xhtml";>
-  
-Bug Filing Form
-
-
-  
-  
-
-
-
-  function foo() {
-//$("#bug").contents().find("a").css("background-color","#BADA55");
-//  $("#bug").attr('src', '/index.cgi');
-  }
-
-  $(document).ready(function(){
-setInterval(foo, 1);
-  });
-
-  
-
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-21 Thread Loic Dachary
 bug/bug.xhtml  |   14 +-
 bug/bug/bug.js |3 ++-
 2 files changed, 15 insertions(+), 2 deletions(-)

New commits:
commit 9de10160e8fedf99dfe00e84767b04078e0e4d36
Author: Loic Dachary 
Date:   Wed Sep 21 16:02:43 2011 +0200

provide a text guide for the reporter to follow

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 5db5438..c0deed1 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -126,7 +126,19 @@
   Subject:
   
   Long description:
-  
+  
+Problem description: 
+
+Steps to reproduce:
+1. 
+2. 
+3. 
+
+Current behavior:
+
+Expected behavior:
+  
+  
 
 
 
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index e01a8ea..5c5b2d1 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -146,10 +146,11 @@
 
 state_description: function() {
 var element = $('.state_description');
+var template = $(".long", element).val();
 if(!element.hasClass('initialized')) {
 var validate = function() {
 if($(".short", element).val().length > 3 &&
-   $(".long", element).val().length > 10) {
+   $(".long", element).val() != template) {
 $.bug.state_submit();
 }
 };
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-21 Thread Loic Dachary
 bug/bug/bug.css |5 +
 1 file changed, 5 insertions(+)

New commits:
commit 8eea2fe0d99f4f7678a286210e06652717e28587
Author: Loic Dachary 
Date:   Wed Sep 21 15:54:46 2011 +0200

add cursor: pointer where appropriate

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index a133f93..9b15aa9 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -256,6 +256,7 @@ body {
 }
 
 .signin div:hover.go {
+cursor: pointer;
 background: url('images/signin-hover.png') no-repeat;
 }
 
@@ -321,6 +322,7 @@ body {
 }
 
 .state_component img:hover {
+cursor: pointer;
 background: url('icons/icon-hover.png') no-repeat;
 }
 
@@ -382,6 +384,7 @@ body {
 }
 
 .state_submit div:hover.go {
+cursor: pointer;
 background: url('images/submit-hover.png') no-repeat;
 }
 
@@ -450,6 +453,7 @@ body {
 }
 
 .state_attach .attach-submit input:hover {
+cursor: pointer;
 background: url('images/upload-hover.png') no-repeat;
 }
 
@@ -470,6 +474,7 @@ body {
 }
 
 .state_attach .attach-file input[type='file'] {
+cursor: pointer;
 position: relative;
 text-align: right;
 -moz-opacity:0 ;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-21 Thread Loic Dachary
 bug/bug/bug.css|4 ++--
 bug/bug/images/description.png |binary
 bug/bug/images/subject.png |binary
 3 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6ba9d29ec6a6f36c75308f37055b1ff56e6b04c5
Author: Loic Dachary 
Date:   Wed Sep 21 15:47:41 2011 +0200

double the size of the input fields for the description

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 08571fa..a133f93 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -350,14 +350,14 @@ body {
 .state_description .subject-input input {
 background: url('images/subject.png') no-repeat;
 height: 28px;
-width: 328px;
+width: 548px;
 border: 0;
 padding: 5px;
 }
 
 .state_description .description-input textarea {
 background: url('images/description.png') no-repeat;
-height: 118px;
+height: 240px;
 width: 548px;
 border: 0;
 padding: 5px;
diff --git a/bug/bug/images/description.png b/bug/bug/images/description.png
index bc7711b..ba88dd3 100644
Binary files a/bug/bug/images/description.png and 
b/bug/bug/images/description.png differ
diff --git a/bug/bug/images/subject.png b/bug/bug/images/subject.png
index ea854b6..06f32c4 100644
Binary files a/bug/bug/images/subject.png and b/bug/bug/images/subject.png 
differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-21 Thread Loic Dachary
 bug/bug.xhtml   |2 +-
 bug/bug/bug.css |2 +-
 bug/bug/bug.js  |9 ++---
 3 files changed, 8 insertions(+), 5 deletions(-)

New commits:
commit e1493d495004d12fc35d23d52ee99f23f53937d3
Author: Loic Dachary 
Date:   Wed Sep 21 15:18:37 2011 +0200

when the component icon is selected, simulate a click in the corresponding 
menu entry. fix a few spelling errors in the component names

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 4eb0c99..e621698 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -103,7 +103,7 @@
   
   
 
-  
+  
 
 &component_comments;
   
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 77e1077..08571fa 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -1,5 +1,5 @@
 /* javascript and old browsers fallback */
-.javascript, .unsupported { 
+.javascript, .unsupported, .compatibility .version { 
 display: none;
 }
 
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c8dca53..e01a8ea 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -102,13 +102,16 @@
 $.bug.current_step('component');
 element.show();
 $('.select', element).select();
-$('.select .choice, img', element).click(function() {
-var component = $(this).attr('data');
-$('.select .chosen', element).attr('data', component);
+$('.select .choice', element).click(function() {
+var component = $(this).attr('data');
 $('.comment', element).hide();
 $('.comment.' + component, element).show();
 $.bug.state_subcomponent();
 });
+$('img', element).click(function() {
+var component = $(this).attr('data');
+$(".select .choice[data='" + component + "']", 
element).click();
+});
 },
 
 state_subcomponent: function() {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-21 Thread Loic Dachary
 bug/bug/bug.js |1 +
 1 file changed, 1 insertion(+)

New commits:
commit c60e88bc872d9bccc8ce1581e488fbb0bffb2a88
Author: Loic Dachary 
Date:   Wed Sep 21 12:21:31 2011 +0200

avoid displaying caret by losing focus on the file input field

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 0743585..c8dca53 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -220,6 +220,7 @@
 // type the filename. launch the browser instead.
 $("input[type='file']", element).focus(function() {
 $(this).click();
+$(this).blur(); // loose focus so that no caret is shown even 
when in caret browsing
 });
 $("input[type='file']", element).change(function() {
 $("input[type='text']", element).val($(this).val());
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-21 Thread Loic Dachary
 bug/bug/bug.css |4 ++--
 bug/bug/bug.js  |5 +
 bug/bug/skin.js |1 +
 3 files changed, 8 insertions(+), 2 deletions(-)

New commits:
commit e9dfac1d15387334b691cf695914cc9183174b7d
Author: Loic Dachary 
Date:   Wed Sep 21 11:00:40 2011 +0200

replace :last-child with .last-child for cross browser compatibility

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index be984d9..06bda0b 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -82,11 +82,11 @@ body {
 background: #FFF url('images/step-first-on.png') no-repeat top left;
 }
 
-.left .step:last-child {
+.left .step.last-child {
 background: #FFF url('images/step-last-off.png') no-repeat top left;
 }
 
-.left .step:last-child.current {
+.left .step.last-child.current {
 background: #FFF url('images/step-last-on.png') no-repeat top left;
 }
 
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c366b0a..d1116fc 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -258,7 +258,12 @@
 });
 },
 
+compatibility: function() {
+$('.left .step:last-child').addClass('last-child'); // cross 
browser compatibility
+},
+
 main: function() {
+$.bug.compatibility();
 $.bug.logged_in().done(function(status) {
 if(status) {
 $.bug.state_component();
diff --git a/bug/bug/skin.js b/bug/bug/skin.js
index 03f56f5..53407b8 100644
--- a/bug/bug/skin.js
+++ b/bug/bug/skin.js
@@ -19,6 +19,7 @@
 
   $.skin = function() {
   $('.skin').show();
+  $.bug.compatibility();
   function component() {
   $.bug.state_component();
   }
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-21 Thread Loic Dachary
 bug/bug.xhtml   |   34 +++---
 bug/bug/bug.css |8 
 2 files changed, 31 insertions(+), 11 deletions(-)

New commits:
commit 58c0e1808583b8cb29fbbe2e316be40dd57e998a
Author: Loic Dachary 
Date:   Wed Sep 21 10:52:15 2011 +0200

fallback for unsupported browsers

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index b7c955c..ef75845 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -21,13 +21,18 @@
 
   
   
-
+
+  
+  This browser version is not supported 
and this page cannot be displayed properly.
+  JavaScript is disabled and this page 
cannot be displayed.
   
-JavaScript is disabled, use bugzilla
 to report a problem.
+Please use bugzilla
 instead to report a problem.
+It works on all browsers and when JavaScript is disabled.
   
   
 
 
+  
   login component subcomponent version 
description submit 
complete 
   
 Bug
@@ -172,15 +177,30 @@
   
 
 
+  var unsupported = false;
   $(document).ready(function() {
-$('.nojavascript').hide();
-$('.javascript').show();
-if(location.search.indexOf('skin') >= 0) {
-  $.skin();
+try {
+  $('.version').text(window.navigator.userAgent);
+} catch(e) {
+}
+if(unsupported) {
+  $('.unsupported').show();
+  $('.nojavascript').hide();
 } else {
-  $.bug.main();
+  $('.compatibility').hide();
+  $('.javascript').show();
+  if(location.search.indexOf('skin') >= 0) {
+$.skin();
+  } else {
+$.bug.main();
+  }
 }
   });
 
+
   
 
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index c5230c6..be984d9 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -1,13 +1,13 @@
-/* javascript fallback */
-.javascript { 
+/* javascript and old browsers fallback */
+.javascript, .unsupported { 
 display: none;
 }
 
-.nojavascript .message {
+.compatibility .message {
 padding: 10px 0px 10px 50px;
 }
 
-.nojavascript .eyecandy {
+.compatibility .eyecandy {
 width: 500px;
 height: 116px;
 background: url('images/noscript.png') no-repeat top left;
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-21 Thread Loic Dachary
 bug/bug.xhtml   |  232 ++--
 bug/bug/bug.css |   15 ++
 bug/bug/images/noscript.png |binary
 3 files changed, 136 insertions(+), 111 deletions(-)

New commits:
commit 397aecfb4e74c080478317da03ad0bad135a9d97
Author: Loic Dachary 
Date:   Wed Sep 21 09:42:13 2011 +0200

fallback when javascript is not active

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index dc8b193..b7c955c 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -21,150 +21,160 @@
 
   
   
-login component subcomponent version 
description submit 
complete 
-
-  Bug
-  
-Thank you for using LibreOffice, we regret that you seem to have found 
a problem in our software, so that you decided to report a bug. This assistant 
will lead you step by step through the bug report process.
+
+  
+JavaScript is disabled, use bugzilla
 to report a problem.
   
+  
 
-
-  
-
-  1Sign in
-  2Component
-  3Subcomponent
-  4Version
-  5Description
-  6Submit
-  7Attach
-
-
-  http://wiki.documentfoundation.org/Bug_Submission_Assistant";>Bug 
Submission Assistant is copyright (C) 2011 Loic Dachary published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : download the sources.
+
+  login component subcomponent version 
description submit 
complete 
+  
+Bug
+
+  Thank you for using LibreOffice, we regret that you seem to have 
found a problem in our software, so that you decided to report a bug. This 
assistant will lead you step by step through the bug report process.
 
   
-  
+  
+
+  
+1Sign in
+2Component
+3Subcomponent
+4Version
+5Description
+6Submit
+7Attach
+  
+  
+http://wiki.documentfoundation.org/Bug_Submission_Assistant";>Bug 
Submission Assistant is copyright (C) 2011 Loic Dachary published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : download the sources.
+  
+
+
 
-   
-  
-
-  
-
-  
-  
-  
-  
-  
+ 
+
+  
+
+  
+
+
+
+
+
+
   
 
   
 
   
-
-
-
+  
+  
 
 
-
- 
-   Please login using your bugzilla account.
- 
- 
-   User:
-
-Password:
-
-   Sign in
-
- or create an account
-
+  
+   
+ Please login using your bugzilla account.
+   
+   
+ User:
+  
+  Password:
+  
+ Sign in
+  
+   or create an 
account
+  
+   
  
-   
 
-
-  
-
-  Select component
-  &components;
-
-
-  
-
+  
+
+  
+Select component
+&components;
+  
+  
+
+  
+
+&component_comments;
   
-  &component_comments;
 
-  
 
-  
-
-  
-Sub component 
+
+  
+
+  Sub component 
+
   
-
-
-  
-Version &versions;
+  
+
+  Version &versions;
+
   
 
-  
 
-  
-Subject:
-
-Long description:
-
-  
+
+  Subject:
+  
+  Long description:
+  
+
 
-  
-   Submit
-
- 
+
+ Submit
+  
+   
+
+   
+ Related bug reports
+ 
+
+
+
+  &subcomponents;
+
 
- 
-   Related bug reports
-   
   
 
-  
-&subcomponents;
+  
+The bug report has been successfully submitted
   
 
-
+  
+
+  Upload an attachment illustrating the problem
+
+   
+ 
+ 
+

[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.js |4 
 1 file changed, 4 insertions(+)

New commits:
commit c5b2bd2e7c04ef9e3cca527ca1fd747daae261f2
Author: Loic Dachary 
Date:   Tue Sep 20 18:27:21 2011 +0200

set progress cursor when appropriate

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index c765dc2..c366b0a 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -76,11 +76,13 @@
 state_signin: function() {
 var element = $('.signin');
 $('.go', element).click(function() {
+$("body").css("cursor", "progress");
 $.bug.error_clear();
 $.bug.ajax('POST', '/index.cgi', {
 Bugzilla_login: $('.user', element).val(),
 Bugzilla_password: $('.password', element).val()
 }).pipe(function(data) {
+$("body").css("cursor", "default");
 return $.bug.lookup_result(data,
$.bug.state_signin_error_regexp,

$.bug.state_signin_success_regexp);
@@ -168,6 +170,7 @@
 var component = $('.state_component .chosen').attr('data');
 var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
 var comment = $('.state_description .long').val();
+$("body").css("cursor", "progress");
 $.bug.ajax('POST', '/post_bug.cgi', {
 product: 'LibreOffice',
 bug_status: 'UNCONFIRMED',
@@ -181,6 +184,7 @@
 short_desc: short_desc,
 comment: comment
 }).pipe(function(data) {
+$("body").css("cursor", "default");
 return $.bug.lookup_result(data,

$.bug.state_submit_error_regexp,

$.bug.state_submit_success_regexp);
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.css |1 +
 1 file changed, 1 insertion(+)

New commits:
commit 1d4453433f332c4a0e2f7333c13b0af94ed07ef6
Author: Loic Dachary 
Date:   Tue Sep 20 18:20:19 2011 +0200

background set to white so that the libreoffice gradient is not visible

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 5a87c9a..42eb58c 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -1,5 +1,6 @@
 body {
 margin: 0;
+background-color: #fff;
 height: 1024px;
 font-family: helvetica, arial;
 }
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.css |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 281086219be75da9adaaff794de98a7d4eb25a6f
Author: Loic Dachary 
Date:   Tue Sep 20 18:15:59 2011 +0200

reduce the width by 10 pixels

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index a49bbdd..5a87c9a 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -32,7 +32,7 @@ body {
 }
 
 .content {
-width: 900px;
+width: 890px;
 }
 
 .content > div {
@@ -105,7 +105,7 @@ body {
 .right {
 padding-left: 40px;
 padding-top: 10px;
-width: 600px;
+width: 590px;
 }
 
 .right .state {
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-20 Thread Loic Dachary
 bug/bug.xhtml  |2 +-
 bug/bug/bug.css|   14 +++---
 bug/bug/images/background-left.png |binary
 bug/bug/images/top-header.png  |binary
 4 files changed, 8 insertions(+), 8 deletions(-)

New commits:
commit 164196f700e77d8fec6fb8de26d5888df5d8a8ea
Author: Loic Dachary 
Date:   Tue Sep 20 18:10:56 2011 +0200

integrate left bar and replace top header

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index f12362a..f26ed1e 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -40,7 +40,7 @@
   7Attach
 
 
-  Bug Submission Assistant is copyright (C) 2011 Loic Dachary 
published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : 
download the sources.
+  http://wiki.documentfoundation.org/Bug_Submission_Assistant";>Bug 
Submission Assistant is copyright (C) 2011 Loic Dachary published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : download the sources.
 
   
   
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index c716e33..a49bbdd 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -6,8 +6,8 @@ body {
 
 .header {
 background: url('images/top-header.png') no-repeat top left;
-height: 109px;
-width: 904px;
+height: 102px;
+width: 891px;
 }
 
 .header .title {
@@ -17,7 +17,7 @@ body {
 font-size: 36px;
 display: inline-block;
 color: #FFF;
-padding-top: 30px;
+padding-top: 20px;
 padding-left: 40px;
 }
 
@@ -26,8 +26,8 @@ body {
 color: #FFF;
 width: 50%;
 font-size: 15px;
-padding-top: 20px;
-padding-left: 80px;
+padding-top: 10px;
+padding-left: 140px;
 font-weight: bold;
 }
 
@@ -43,7 +43,7 @@ body {
 .left {
 width: 255px;
 height: 100%;
-background-color: #ebebeb;
+background: url('images/background-left.png') repeat-y;
 font-family: helvetica, arial;
 font-size: 18px;
 font-weight: bold;
@@ -89,7 +89,7 @@ body {
 }
 
 .copyright {
-padding: 100px 10px 0px 30px;
+padding: 100px 30px 0px 20px;
 font-size: 8px;
 color: #29a1e0;
 }
diff --git a/bug/bug/images/background-left.png 
b/bug/bug/images/background-left.png
new file mode 100644
index 000..5571c6e
Binary files /dev/null and b/bug/bug/images/background-left.png differ
diff --git a/bug/bug/images/top-header.png b/bug/bug/images/top-header.png
index 65969a7..4b59539 100644
Binary files a/bug/bug/images/top-header.png and 
b/bug/bug/images/top-header.png differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.css|   32 
 bug/bug/images/select-bottom-left.png  |binary
 bug/bug/images/select-bottom-right.png |binary
 bug/bug/images/select-bottom.png   |binary
 bug/bug/images/select-left.png |binary
 bug/bug/images/select-right.png|binary
 bug/bug/images/select-top-left.png |binary
 bug/bug/images/select-top-right.png|binary
 bug/bug/images/select-top.png  |binary
 bug/bug/select.css |1 +
 bug/bug/select.js  |2 +-
 dev/null   |binary
 12 files changed, 18 insertions(+), 17 deletions(-)

New commits:
commit ef5bac7866a733e7c5b09eaca8a22fe2ca49d0dc
Author: Loic Dachary 
Date:   Tue Sep 20 17:51:59 2011 +0200

integrate menus

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 2b77811..c716e33 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -522,45 +522,45 @@ body {
 }
 
 .select .choices .select-top {
-padding-top: 10px;
-background: url('images/select-horizontal.png') repeat-x top left;
+padding-top: 6px;
+background: url('images/select-top.png') repeat-x top left;
 }
 
 .select .choices .select-bottom {
-padding-bottom: 10px;
-background: url('images/select-horizontal.png') repeat-x bottom left;
+padding-bottom: 22px;
+background: url('images/select-bottom.png') repeat-x bottom left;
 }
 
 .select .choices .top-left {
 background: url('images/select-top-left.png') no-repeat;
-height: 10px;
-width: 10px;
+width: 12px;
+height: 6px;
 }
 
 .select .choices .top-right {
 background: url('images/select-top-right.png') no-repeat;
-height: 10px;
-width: 10px;
+width: 12px;
+height: 6px;
 }
 
 .select .choices .bottom-left {
 background: url('images/select-bottom-left.png') no-repeat;
-height: 10px;
-width: 10px;
+width: 12px;
+height: 22px;
 }
 
 .select .choices .bottom-right {
 background: url('images/select-bottom-right.png') no-repeat;
-height: 10px;
-width: 10px;
+width: 12px;
+height: 22px;
 }
 
 .select .choices .select-left {
-background: url('images/select-vertical.png') repeat-y top left;
-padding-left: 10px;
+background: url('images/select-left.png') repeat-y top left;
+padding-left: 12px;
 }
 
 .select .choices .select-right {
-background: url('images/select-vertical.png') repeat-y top right;
-padding-right: 10px;
+background: url('images/select-right.png') repeat-y top right;
+padding-right: 12px;
 }
diff --git a/bug/bug/images/select-bottom-left.png 
b/bug/bug/images/select-bottom-left.png
index 1298339..4f9f3ac 100644
Binary files a/bug/bug/images/select-bottom-left.png and 
b/bug/bug/images/select-bottom-left.png differ
diff --git a/bug/bug/images/select-bottom-right.png 
b/bug/bug/images/select-bottom-right.png
index d739ef7..c4d483e 100644
Binary files a/bug/bug/images/select-bottom-right.png and 
b/bug/bug/images/select-bottom-right.png differ
diff --git a/bug/bug/images/select-bottom.png b/bug/bug/images/select-bottom.png
new file mode 100644
index 000..59d3da4
Binary files /dev/null and b/bug/bug/images/select-bottom.png differ
diff --git a/bug/bug/images/select-horizontal.png 
b/bug/bug/images/select-horizontal.png
deleted file mode 100644
index bc8bbe2..000
Binary files a/bug/bug/images/select-horizontal.png and /dev/null differ
diff --git a/bug/bug/images/select-left.png b/bug/bug/images/select-left.png
new file mode 100644
index 000..df94fdc
Binary files /dev/null and b/bug/bug/images/select-left.png differ
diff --git a/bug/bug/images/select-right.png b/bug/bug/images/select-right.png
new file mode 100644
index 000..215d4f8
Binary files /dev/null and b/bug/bug/images/select-right.png differ
diff --git a/bug/bug/images/select-top-left.png 
b/bug/bug/images/select-top-left.png
index 1cee77d..5f83e24 100644
Binary files a/bug/bug/images/select-top-left.png and 
b/bug/bug/images/select-top-left.png differ
diff --git a/bug/bug/images/select-top-right.png 
b/bug/bug/images/select-top-right.png
index 3ee6019..4ba8c83 100644
Binary files a/bug/bug/images/select-top-right.png and 
b/bug/bug/images/select-top-right.png differ
diff --git a/bug/bug/images/select-top.png b/bug/bug/images/select-top.png
new file mode 100644
index 000..c209c6d
Binary files /dev/null and b/bug/bug/images/select-top.png differ
diff --git a/bug/bug/images/select-vertical.png 
b/bug/bug/images/select-vertical.png
deleted file mode 100644
index a76a3cb..000
Binary files a/bug/bug/images/select-vertical.png and /dev/null differ
diff --git a/bug/bug/select.css b/bug/bug/select.css
index 72ba585..2e51eb0 100644
--- a/bug/bug/select.css
+++ b/bug/bug/select.css
@@ -10,6 +10,7 @@
 margin: 0;
 padding: 0;
 height: 180px;
+width: 130px;
 overflow: auto;
 }
 
diff --git a/bug/bug/select.js b/bug/bug/select.js
index b1d99f4..74432c7 100644
--- a/bug/bug/select.js
+++ 

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

2011-09-20 Thread Loic Dachary
 bug/bug.xhtml|   16 +---
 bug/bug/bug.css  |   72 +++
 bug/bug/bug.js   |8 +++-
 bug/bug/images/upload-browse.png |binary
 bug/bug/images/upload-hover.png  |binary
 bug/bug/images/upload-input.png  |binary
 bug/bug/images/upload.png|binary
 7 files changed, 84 insertions(+), 12 deletions(-)

New commits:
commit d71220144894a4839f94b7780335c5e553b73e79
Author: Loic Dachary 
Date:   Tue Sep 20 17:10:39 2011 +0200

integrate file upload

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 1135cf1..f12362a 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -145,11 +145,17 @@
 
 
 
- 
-  
- 
- 
-  
+ 
+   
+
+
+  
+  Browse
+
+   
+   
+
+   
  
  
  
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 8680d87..2b77811 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -414,17 +414,25 @@ body {
 padding: 10px;
 }
 
+.state_attach .attach-file-and-submit {
+text-align: right;
+vertical-align: top;
+width: 79%;
+}
+
+.state_attach .attach-file-style > div {
+display: inline-block;
+}
+
 .state_attach .attach-submit input {
-margin-left: auto;
-margin-right: 40px;
 background: url('images/upload.png') no-repeat;
-width: 163px;
-height: 49px;
+width: 94px;
+height: 38px;
 font-weight: bold;
-font-size: 20px;
+font-size: 14px;
 color: #fff;
 text-align: center;
-line-height: 49px;
+line-height: 38px;
 border: 0;
 }
 
@@ -432,6 +440,58 @@ body {
 background: url('images/upload-hover.png') no-repeat;
 }
 
+.state_attach .attach-file {
+position: relative;
+height: 38px;
+}
+
+.state_attach .attach-file .attach-file-style {
+position: absolute;
+top: 0;
+right: 0;
+z-index: 1;
+}
+
+.state_attach .attach-file .attach-file-style > div {
+vertical-align: top;
+}
+
+.state_attach .attach-file input[type='file'] {
+position: relative;
+text-align: right;
+-moz-opacity:0 ;
+filter:alpha(opacity: 0);
+opacity: 0;
+z-index: 2;
+width: 400px;
+height: 39px;
+}
+
+.state_attach .attach-file input[type='text'] {
+margin-top: 6px;
+width: 242px;
+height: 27px;
+background: url('images/upload-input.png') no-repeat;
+border: 0;
+padding: 0;
+}
+
+.state_attach .attach-browse {
+background: url('images/upload-browse.png') no-repeat;
+width: 94px;
+height: 39px;
+font-weight: bold;
+font-size: 14px;
+color: #057cc0;
+text-align: center;
+line-height: 38px;
+border: 0;
+}
+
+.state_attach img {
+display: none;
+}
+
 /* skin */
 .skin {
 display: none;
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index db5a6c2..c765dc2 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -207,8 +207,14 @@
 var attachment = $.bug.lookup_result(data,
  
$.bug.state_attach_error_regexp,
  
$.bug.state_attach_success_regexp);
-$('img', element).attr('src', '/attachment.cgi?id=' + 
attachment);
+$('img', element).
+attr('src', '/attachment.cgi?id=' + attachment).
+show();
+
 }});
+$("input[type='file']", element).change(function() {
+$("input[type='text']", element).val($(this).val());
+});
 $.bug.current_step('attach');
 element.show();
 },
diff --git a/bug/bug/images/upload-browse.png b/bug/bug/images/upload-browse.png
new file mode 100644
index 000..ab210f1
Binary files /dev/null and b/bug/bug/images/upload-browse.png differ
diff --git a/bug/bug/images/upload-hover.png b/bug/bug/images/upload-hover.png
index 886c540..489785a 100644
Binary files a/bug/bug/images/upload-hover.png and 
b/bug/bug/images/upload-hover.png differ
diff --git a/bug/bug/images/upload-input.png b/bug/bug/images/upload-input.png
new file mode 100644
index 000..a77e5ed
Binary files /dev/null and b/bug/bug/images/upload-input.png differ
diff --git a/bug/bug/images/upload.png b/bug/bug/images/upload.png
index 886c540..489785a 100644
Binary files a/bug/bug/images/upload.png and b/bug/bug/images/upload.png differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug bug/component_comments.xsl

2011-09-20 Thread Loic Dachary
 bug/bug/bug.css|   17 +++--
 bug/bug/select.css |2 ++
 bug/component_comments.xsl |2 +-
 3 files changed, 18 insertions(+), 3 deletions(-)

New commits:
commit 325a3332c17377fef8983e9922a481ac00ee3962
Author: Loic Dachary 
Date:   Tue Sep 20 15:03:17 2011 +0200

add overflow auto where appropriate

diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index a29b4de..8680d87 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -89,9 +89,17 @@ body {
 }
 
 .copyright {
-padding-top: 100px;
+padding: 100px 10px 0px 30px;
 font-size: 8px;
-color: #9d9d9d;
+color: #29a1e0;
+}
+
+.copyright a {
+color: #025587;
+}
+
+.copyright a:hover {
+color: #29a1e0;
 }
 
 .right {
@@ -275,6 +283,11 @@ body {
 right: 0;
 }
 
+.state_component .comments .comment-text {
+height: 130px;
+overflow: auto;
+}
+
 .state_component .comments .comment-read-more a {
 text-decoration: none;
 color: #cc1300;
diff --git a/bug/bug/select.css b/bug/bug/select.css
index 9c73287..72ba585 100644
--- a/bug/bug/select.css
+++ b/bug/bug/select.css
@@ -9,6 +9,8 @@
 list-style: none;
 margin: 0;
 padding: 0;
+height: 180px;
+overflow: auto;
 }
 
 .select .top-left {
diff --git a/bug/component_comments.xsl b/bug/component_comments.xsl
index 436f810..d33d66d 100644
--- a/bug/component_comments.xsl
+++ b/bug/component_comments.xsl
@@ -18,7 +18,7 @@

   
comment
   Component  
- 
+ 
   
 
   http://wiki.documentfoundation.org/BugzAssHlp__long
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/images/step-first-off.png |binary
 bug/bug/images/step-first-on.png  |binary
 2 files changed

New commits:
commit 70f760782626633599697786fc3ccdd3a1878b36
Author: Loic Dachary 
Date:   Tue Sep 20 13:50:11 2011 +0200

remove extra pixel in step-first background images

diff --git a/bug/bug/images/step-first-off.png 
b/bug/bug/images/step-first-off.png
index df32018..c65443c 100644
Binary files a/bug/bug/images/step-first-off.png and 
b/bug/bug/images/step-first-off.png differ
diff --git a/bug/bug/images/step-first-on.png b/bug/bug/images/step-first-on.png
index bbd6ba0..0aa4b8b 100644
Binary files a/bug/bug/images/step-first-on.png and 
b/bug/bug/images/step-first-on.png differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-20 Thread Loic Dachary
 bug/bug.xhtml |   16 +---
 bug/bug/bug.css   |   10 +-
 bug/bug/bug.js|5 -
 bug/bug/images/step-first-off.png |binary
 bug/bug/images/step-first-on.png  |binary
 bug/bug/images/step-last-off.png  |binary
 bug/bug/images/step-last-on.png   |binary
 bug/bug/images/step-off.png   |binary
 bug/bug/images/step-on.png|binary
 9 files changed, 18 insertions(+), 13 deletions(-)

New commits:
commit d61a6e4facab65f05b8181e42793fedd9e83c393
Author: Loic Dachary 
Date:   Tue Sep 20 13:10:46 2011 +0200

Replace step backgrounds with images provided by Ivan M.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 94e74b7..1135cf1 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -30,13 +30,15 @@
 
 
   
-1Sign in
-2Component
-3Subcomponent
-4Version
-5Description
-6Submit
-7Attach
+
+  1Sign in
+  2Component
+  3Subcomponent
+  4Version
+  5Description
+  6Submit
+  7Attach
+
 
   Bug Submission Assistant is copyright (C) 2011 Loic Dachary 
published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : 
download the sources.
 
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index ef22aa5..a29b4de 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -50,8 +50,8 @@ body {
 }
 
 .left .step {
-line-height: 65px;
-height: 65px;
+line-height: 62px;
+height: 64px;
 width: 255px;
 background: #FFF url('images/step-off.png') no-repeat top left;
 }
@@ -60,7 +60,7 @@ body {
 background: #FFF url('images/step-on.png') no-repeat top left;
 }
 
-.left .stop:first-child {
+.left .step:first-child {
 background: #FFF url('images/step-first-off.png') no-repeat top left;
 }
 
@@ -68,7 +68,7 @@ body {
 background: #FFF url('images/step-first-on.png') no-repeat top left;
 }
 
-.left .stop:last-child {
+.left .step:last-child {
 background: #FFF url('images/step-last-off.png') no-repeat top left;
 }
 
@@ -77,7 +77,7 @@ body {
 }
 
 .left .count {
-padding-left: 35px;
+padding-left: 30px;
 display: inline-block;
 color: #fff;
 }
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 5e983ea..db5a6c2 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -114,7 +114,10 @@
 var component = $('.state_component .chosen').attr('data');
 var subcomponent = $('.subcomponents .' + component, 
element).html();
 $('.active_subcomponent', element).html(subcomponent);
-$.bug.current_step('subcomponent');
+if(!element.hasClass('initialized')) {
+element.addClass('initialized');
+$.bug.current_step('subcomponent');
+}
 element.show();
 $('.active_subcomponent .select', element).select();
 $('.active_subcomponent .select .choice', 
element).click(function() {
diff --git a/bug/bug/images/step-first-off.png 
b/bug/bug/images/step-first-off.png
index 16fb3ef..df32018 100644
Binary files a/bug/bug/images/step-first-off.png and 
b/bug/bug/images/step-first-off.png differ
diff --git a/bug/bug/images/step-first-on.png b/bug/bug/images/step-first-on.png
index 20d2fd7..bbd6ba0 100644
Binary files a/bug/bug/images/step-first-on.png and 
b/bug/bug/images/step-first-on.png differ
diff --git a/bug/bug/images/step-last-off.png b/bug/bug/images/step-last-off.png
index 16fb3ef..7dc348d 100644
Binary files a/bug/bug/images/step-last-off.png and 
b/bug/bug/images/step-last-off.png differ
diff --git a/bug/bug/images/step-last-on.png b/bug/bug/images/step-last-on.png
index 20d2fd7..f6d5874 100644
Binary files a/bug/bug/images/step-last-on.png and 
b/bug/bug/images/step-last-on.png differ
diff --git a/bug/bug/images/step-off.png b/bug/bug/images/step-off.png
index 3fc7356..6223d43 100644
Binary files a/bug/bug/images/step-off.png and b/bug/bug/images/step-off.png 
differ
diff --git a/bug/bug/images/step-on.png b/bug/bug/images/step-on.png
index 20d2fd7..0e9289f 100644
Binary files a/bug/bug/images/step-on.png and b/bug/bug/images/step-on.png 
differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.js |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e50f01352712a53a82ea09363f7a98d5268878a5
Author: Loic Dachary 
Date:   Tue Sep 20 12:54:36 2011 +0200

fix extract of subcomponent in related bugs

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 9b21a9f..5e983ea 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -233,7 +233,7 @@
 refresh_related_bugs: function() {
 $('.related_bugs').empty();
 var component = $('.state_component 
.chosen').attr('data').replace('_','%20');
-var subcomponent = $('.state_subcomponent .subcomponent').val();
+var subcomponent = $('.state_subcomponent .active_subcomponent 
.chosen').attr('data');
 var list = '/buglist.cgi?columnlist=short_desc&component=' + 
component + 
'&product=LibreOffice&query_format=advanced&short_desc_type=allwordssubstr&ctype=csv&short_desc='
 + subcomponent;
 $.bug.ajax('GET', list).pipe(function(data) {
 var lines = data.split('\n');
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-20 Thread Loic Dachary
 bug/bug/bug.js|   16 ++
 bug/bug/test.html |   81 +-
 bug/bug/test.js   |   47 ++-
 3 files changed, 93 insertions(+), 51 deletions(-)

New commits:
commit dc46ad2c8228263ee98d9b509472f534530eb504
Author: Loic Dachary 
Date:   Tue Sep 20 12:50:12 2011 +0200

adapt test to new HTML structure and JS code

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 9c55d0d..9b21a9f 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -43,7 +43,7 @@
 lookup_result: function(data, error_regexp, success_regexp) {
 var error = data.match(error_regexp);
 if(error !== null) {
-$('.error').text(error[1]);
+$.bug.error_set(error[1]);
 throw error;
 } else {
 var success = data.match(success_regexp);
@@ -161,6 +161,10 @@
 var element = $('.state_submit');
 if(!element.hasClass('initialized')) {
 $('.go', element).click(function() {
+var version = $('.state_version .chosen').attr('data');
+var component = $('.state_component .chosen').attr('data');
+var short_desc = $('.state_subcomponent 
.active_subcomponent .chosen').attr('data') + ': ' + $('.state_description 
.short').val();
+var comment = $('.state_description .long').val();
 $.bug.ajax('POST', '/post_bug.cgi', {
 product: 'LibreOffice',
 bug_status: 'UNCONFIRMED',
@@ -169,10 +173,10 @@
 bug_severity: 'normal',
 priority: 'medium',
 assigned_to: 'libreoffice-b...@lists.freedesktop.org',
-component: $('.state_component .component').val(),
-short_desc: $('.state_subcomponent 
.active_subcomponent .subcomponent').val() + ': ' + $('.state_description 
.short').val(),
-version: $('.state_version .versions').val(),
-comment: $('.state_description .long').val()
+component: component,
+version: version,
+short_desc: short_desc,
+comment: comment
 }).pipe(function(data) {
 return $.bug.lookup_result(data,

$.bug.state_submit_error_regexp,
@@ -228,7 +232,7 @@
 
 refresh_related_bugs: function() {
 $('.related_bugs').empty();
-var component = $('.state_component 
.component').val().replace('_','%20');
+var component = $('.state_component 
.chosen').attr('data').replace('_','%20');
 var subcomponent = $('.state_subcomponent .subcomponent').val();
 var list = '/buglist.cgi?columnlist=short_desc&component=' + 
component + 
'&product=LibreOffice&query_format=advanced&short_desc_type=allwordssubstr&ctype=csv&short_desc='
 + subcomponent;
 $.bug.ajax('GET', list).pipe(function(data) {
diff --git a/bug/bug/test.html b/bug/bug/test.html
index dacf1f9..3563ebc 100644
--- a/bug/bug/test.html
+++ b/bug/bug/test.html
@@ -6,9 +6,11 @@
   
   
   
-  
   
+  
   
+  
+  
   
   
   
@@ -21,7 +23,9 @@
   
   
 
-
+
+  
+
 
 
 
@@ -32,10 +36,17 @@
 
 
 
-  
-(chose a component)
-BASIC
-  
+  
+
+  (chose one)
+
+
+  
+BASIC
+OTHER
+  
+
+  
   
 
 
@@ -49,32 +60,52 @@
 
   
 
-  
-(chose one)
-Macros
-BASIC
-IDE
-  
+  
+
+  (chose one)
+
+
+  
+(all other problems)
+Macros
+BASIC
+IDE
+  
+
+  
 
 
-  
-(chose one)
-FILEOPEN
-FILESAFE
-FORMATTING
-PRINTING
-UI
-VIEWING
-  
+  
+
+  (chose one)
+
+
+  
+(all other problems)
+FILEOPEN
+FILESAFE
+FORMATTING
+PRINTING
+UI
+VIEWING
+  
+
 
   
 
 
 
-  
-(chose a version)
-VERSION1
-  
+  
+
+  (chose one)
+
+
+  
+unspecified
+VERSION1
+  
+
+  
 
 
 
diff --git a/bug/bug/test.js b/bug/bug/test.js
index f8c6c86..0fcea78 100644
--- a/bug/bug/test.js
+++ b/bug/bug/te

[Libreoffice-commits] .: bug/bug

2011-09-19 Thread Loic Dachary
 bug/bug/icons/icon-hover.png |binary
 bug/bug/images/comment.png   |binary
 2 files changed

New commits:
commit 99ec13a3d1c7fc2827a634314457e2fb5347015e
Author: Loic Dachary 
Date:   Mon Sep 19 21:11:24 2011 +0200

integration of the component state

diff --git a/bug/bug/icons/icon-hover.png b/bug/bug/icons/icon-hover.png
new file mode 100644
index 000..25b912f
Binary files /dev/null and b/bug/bug/icons/icon-hover.png differ
diff --git a/bug/bug/images/comment.png b/bug/bug/images/comment.png
new file mode 100644
index 000..1514954
Binary files /dev/null and b/bug/bug/images/comment.png differ
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


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

2011-09-18 Thread Loic Dachary
 bug/bug.xhtml   |   10 +++-
 bug/bug/bug.css |5 
 bug/bug/bug.js  |2 -
 bug/bug/skin.js |   69 
 4 files changed, 84 insertions(+), 2 deletions(-)

New commits:
commit 42e0dad5868972db7891a19668a2585b73813cd5
Author: Loic Dachary 
Date:   Sun Sep 18 09:57:55 2011 +0200

If ?skin is added to the Bug Submission Assistant URL, links are shown to 
display all the states. For instance ?skin=submit will show the page as it 
would look just before the user submit the form. For HTML/CSS integration, it 
helps to visualize the states locally without the need to actually install the 
corresponding reverse proxy.

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index affe3e1..4a25786 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -15,9 +15,11 @@
 
 
 
+
 
   
   
+login component subcomponent description submit complete 
 
   
 Steps
@@ -139,7 +141,13 @@
   
 
 
-  $(document).ready($.bug.main);
+  $(document).ready(function() {
+if(location.search.indexOf('skin') >= 0) {
+  $.skin();
+} else {
+  $.bug.main();
+}
+  });
 
   
 
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index e33..43370b3 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -112,3 +112,8 @@ body {
 .state_attach {
 display: none;
 }
+
+/* skin */
+.skin {
+display: none;
+}
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 2f6b7f2..4d5e31b 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -215,7 +215,7 @@
 var component = $('.state_component 
.component').val().replace('_','%20');
 var subcomponent = $('.state_subcomponent .subcomponent').val();
 var list = '/buglist.cgi?columnlist=short_desc&component=' + 
component + 
'&product=LibreOffice&query_format=advanced&short_desc_type=allwordssubstr&ctype=csv&short_desc='
 + subcomponent;
-$.bug.ajax('GET', list, undefined, function(data) {
+$.bug.ajax('GET', list).pipe(function(data) {
 var lines = data.split('\n');
 var bug_urls = [];
 for(var i = 1; i < lines.length; i++) {
diff --git a/bug/bug/skin.js b/bug/bug/skin.js
new file mode 100644
index 000..1b626e2
--- /dev/null
+++ b/bug/bug/skin.js
@@ -0,0 +1,69 @@
+//
+// Copyright (C) 2011 Loic Dachary 
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program.  If not, see .
+//
+
+(function($) {
+
+  $.skin = function() {
+  $('.skin').show();
+  if(location.search.indexOf('skin=login') >= 0) {
+  $.bug.state_signin();
+  } else if(location.search.indexOf('skin=component') >= 0) {
+  $.bug.state_component();
+  } else if(location.search.indexOf('skin=subcomponent') >= 0) {
+  $.bug.state_component();
+  $('.state_component .component').prop("selectedIndex", 2);
+  $('.state_component .component').change();
+  $('.state_subcomponent .subcomponent').prop("selectedIndex", 2);
+  $.bug.ajax = function(settings) {
+  return $.Deferred().resolve('NUM,DESC\n100,"BUG 1"\n200,"BUG 
2"\n');
+  };
+  $('.state_subcomponent .subcomponent').change();
+  } else if(location.search.indexOf('skin=description') >= 0) {
+  $.bug.state_component();
+  $('.state_component .component').prop("selectedIndex", 2);
+  $('.state_component .component').change();
+  $('.state_subcomponent .subcomponent').prop("selectedIndex", 2);
+  $.bug.ajax = function(settings) {
+  return $.Deferred().resolve('NUM,DESC\n100,"BUG 1"\n200,"BUG 
2"\n');
+  };
+  $('.state_subcomponent .subcomponent').change();
+  $('.state_version .versions').prop("selectedIndex", 2);
+  $('.state_version .versions').change();
+  $('.state_description .short').val('12');
+  $('.state_description .long').val('123456');
+  } else if(location.search.indexOf('skin=submit') >= 0) {
+  $.bug.state_component();
+  $('.state_component .component').prop("selectedIndex", 2);
+  $('.state_component .component').change();
+  $('.state_subcomponent .subcomponent').prop("selectedIndex", 2);
+  $.bug.ajax = function(settings) {
+  return $.Defe

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

2011-09-17 Thread Loic Dachary
 bug/bug.xhtml   |7 ---
 bug/bug/bug.css |   14 ++
 bug/bug/bug.js  |3 ---
 3 files changed, 10 insertions(+), 14 deletions(-)

New commits:
commit b29748e63b2872390010ac8e1f78d1cf3b8b
Author: Loic Dachary 
Date:   Sat Sep 17 13:31:30 2011 +0200

all state share the same error, remove useless comment and factorize the css

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 077178b..affe3e1 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -30,6 +30,8 @@
 
   
   
+
+
 
   Thank you for using LibreOffice, we regret that you seem to have 
found a problem in our software, so that you decided to report a bug. This 
assistant will lead you step by step through the bug report process.
 
@@ -42,7 +44,6 @@
User: 
Password: 
Sign in
-   
  
  
Or signup.
@@ -98,7 +99,6 @@
 
   
SUBMIT
-
 
  
 
@@ -128,10 +128,11 @@
 
 
  
- 
  

 
+   
+
 
   Bug Submission Assistant is copyright (C) 2011 Loic Dachary 
published under http://www.gnu.org/licenses/gpl.txt";>GNU GPLv3+ : 
download the sources.
 
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 1302565..e33 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -40,6 +40,12 @@ body {
 border: 3px solid #18A303;
 }
 
+/* error */
+
+.error {
+background-color: #ff;
+}
+
 /* signin */
 .signin {
 margin: 5px;
@@ -47,10 +53,6 @@ body {
 display: none;
 }
 
-.signin .error {
-background-color: #ff;
-}
-
 .signin .go {
 background-color: #BADA55;
 }
@@ -97,10 +99,6 @@ body {
 display: none;
 }
 
-.state_submit .error {
-background-color: #ff;
-}
-
 .state_submit .go {
 background-color: #BADA55;
 }
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 2aeec07..5525e37 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -38,9 +38,6 @@
 }
 },
 
-// if this string is found in the page returned when 
-// trying to login, it means the login / password combination
-// is invalid.
 state_signin_error_regexp: 'class="throw_error">([^<]*)',
 state_signin_success_regexp: 'Log out([^<]*)',
 
___
Libreoffice-commits mailing list
Libreoffice-commits@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] .: bug/bug

2011-09-16 Thread Loic Dachary
 bug/bug/bug.js |  108 -
 1 file changed, 54 insertions(+), 54 deletions(-)

New commits:
commit 261964a2c2fb1ac45ba433dc252d2471e148548c
Author: Loic Dachary 
Date:   Wed Sep 14 16:10:05 2011 +0200

remove extra comma and mixed tab/spaces to please jslint

diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index baf86f2..3f3ab29 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -29,20 +29,20 @@
 
 state_signin: function() {
 var element = $('.signin');
-   $('.go', element).click(function() {
-   $('.error', element).empty();
-   $.bug.post('/index.cgi', {
+$('.go', element).click(function() {
+$('.error', element).empty();
+$.bug.post('/index.cgi', {
 Bugzilla_login: $('.user', element).val(),
 Bugzilla_password: $('.password', element).val()
 }, function(data) {
-   if(data.indexOf($.bug.state_signin_error_string) < 0) {
-   element.hide();
-   $.bug.state_component();
-   } else {
-   $('.error', element).text('invalid user or 
password');
-   }
-   });
-   });
+if(data.indexOf($.bug.state_signin_error_string) < 0) {
+element.hide();
+$.bug.state_component();
+} else {
+$('.error', element).text('invalid user or password');
+}
+});
+});
 element.show();
 },
 
@@ -50,14 +50,14 @@
 var element = $('.state_component');
 
 var change_component = function() {
-   var component = $(this).val();
-   $('.comment', element).hide();
-   $('.comment.' + component, element).show();
-   $.bug.state_subcomponent();
+var component = $(this).val();
+$('.comment', element).hide();
+$('.comment.' + component, element).show();
+$.bug.state_subcomponent();
 };
 
-   $('.component', element).change(change_component);
-   $('.component', element).prop("selectedIndex", 0);
+$('.component', element).change(change_component);
+$('.component', element).prop("selectedIndex", 0);
 
 element.show();
 },
@@ -69,11 +69,11 @@
 $('.active_subcomponent', element).html(subcomponent);
 var change_subcomponent = function() {
 $.bug.refresh_related_bugs();
-   $.bug.state_version();
+$.bug.state_version();
 };
 
 $('.subcomponent', element).change(change_subcomponent);
-   $('.subcomponent', element).prop("selectedIndex", 0);
+$('.subcomponent', element).prop("selectedIndex", 0);
 
 element.show();
 },
@@ -81,10 +81,10 @@
 state_version: function() {
 var element = $('.state_version');
 if(!element.hasClass('initialized')) {
-   $(".versions", element).change(function() {
+$(".versions", element).change(function() {
 $.bug.state_description();
 });
-   $(".versions").prop("selectedIndex", 0);
+$(".versions").prop("selectedIndex", 0);
 element.addClass('initialized');
 element.show();
 }
@@ -100,8 +100,8 @@
 }
 };
 
-   $(".short", element).change(function() { validate(); });
-   $(".long", element).keyup(function() { validate(); });
+$(".short", element).change(function() { validate(); });
+$(".long", element).keyup(function() { validate(); });
 element.addClass('initialized');
 element.show();
 }
@@ -114,7 +114,7 @@
 var element = $('.state_submit');
 if(!element.hasClass('initialized')) {
 $('.go', element).click(function() {
-   $.bug.post('/post_bug.cgi', {
+$.bug.post('/post_bug.cgi', {
 product: 'LibreOffice',
 bug_status: 'UNCONFIRMED',
 rep_platform: 'Other',
@@ -125,7 +125,7 @@
 component: $('.state_component .component').val(),
 short_desc: $('.state_subcomponent 
.active_subcomponent .subcomponent').val() + ': ' + $('.state_description 
.short').val(),
 version: $('.state_version .versions').val(),
-comment: $('.state_description .long').val(),
+comment: $('.state_description .long').val()
 }, functio