DragonFly bugs List (threaded) for 2009-07
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: [issue1443] Bug tracker web interface sometimes records submissions twice (with firefox)
It seems I've solved the problem, the function must return a boolean type
(false or true) and not just 0 or 1. That is:
function submit_once() {
if (++submitted > 1) {
alert("Your request is being processed.\nPlease be patient.");
try {
event.returnValue = 0; // work-around for IE
} catch (e) {}
return false;
}
return true;
}
And it would be nice if we declare the "submitted" variable with "var",
i.e. var submitted = 0;
cheers.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]