Re: [issue1443] Bug tracker web interface sometimes records

看板DFBSD_bugs作者時間16年前 (2009/07/29 07:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
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.
文章代碼(AID): #1ARuftpD (DFBSD_bugs)
文章代碼(AID): #1ARuftpD (DFBSD_bugs)