[Libreoffice-commits] .: bug/bug
Loic Dachary
loic at kemper.freedesktop.org
Wed Oct 19 10:38:29 PDT 2011
bug/bug/bug.js | 2 +-
bug/bug/test.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 22a4a09c366b30d7ea938a2acb93bd123a369b0f
Author: Loic Dachary <loic at dachary.org>
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');
More information about the Libreoffice-commits
mailing list