Javascript checking of button not to be pressed second time

14 views
Skip to first unread message

Валерий Заподовников

unread,
Aug 27, 2021, 9:34:26 PMAug 27
to Trac Users
Sometimes when you click (fast) twice on create ticket or send a comment, it just sends it two times. Happened many times, last time here: https://trac.ffmpeg.org/ticket/9390#comment:4

Please fix, click on the button should disable that button, that is like 101 of Javascript! 

If fixed, please point out the commit.

Thanks.

Ryan Ollos

unread,
Aug 27, 2021, 9:39:38 PMAug 27
to Trac Users
The issue was fixed in Trac 1.0.2:
The relevant entry is:
Multiple forms submits are disallowed (#10138).


There is a problem with your installation. The browser console shows:

9390:73 Uncaught TypeError: $(...).disableSubmit is not a function
    at HTMLDocument.<anonymous> (9390:73)
    at o (jquery.js:2)
    at Object.fireWith (jquery.js:2)
    at Function.ready (jquery.js:2)
    at HTMLDocument.B (jquery.js:2) 

I suspect the static assets were not redeployed after upgrading Trac:

More details in this ticket:

Ryan
Reply all
Reply to author
Forward
0 new messages