Javascript checking of button not to be pressed second time

Skip to first unread message

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

Aug 27, 2021, 9:34:26 PM8/27/21
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:

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

If fixed, please point out the commit.


Ryan Ollos

Aug 27, 2021, 9:39:38 PM8/27/21
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:

Reply all
Reply to author
0 new messages