bug/bug/bug.js | 6 ++++++ 1 file changed, 6 insertions(+) New commits: commit 2ba273056ae2304cf64aef40c54929eefd689615 Author: Rob Snelders <programm...@ertai.nl> Date: Mon Dec 3 19:56:56 2012 +0100
Get token earlier and clear error on retry of submit diff --git a/bug/bug/bug.js b/bug/bug/bug.js index 6452f45..271d2dc 100644 --- a/bug/bug/bug.js +++ b/bug/bug/bug.js @@ -217,6 +217,11 @@ element.addClass('initialized'); $.bug.current_step('description'); element.show(); + if ($.bug.token == '') { + $.bug.ajax('GET', $.bug.url + '/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED').pipe(function(data){ + $.bug.token = data.match(/<input type="hidden" name="token" value="([A-Za-z0-9]{10})">/)[1]; + }); + } } }, @@ -267,6 +272,7 @@ } else { $(element).addClass('inprogress'); } + error_clear(); var component = $('.state_component .chosen').attr('data').replace('_',' '); var short_desc = $.bug.subcomponent + ': ' + $('.state_description .short').val(); //Add Operating System _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits