javier-HEG / PECI

A simplified interface for non-superadmin LimeSurvey users.
GNU General Public License v3.0
0 stars 0 forks source link

Find out about double clicks #18

Closed javier-HEG closed 12 years ago

javier-HEG commented 12 years ago

An error in the javascript code can help stop the double click effect on buttons. For example, if "Open" is clicked without any selected survey, it should produce only one alert. Instead, if event is declared as a parameter of function it still produces two alerts, despite of the event.stopPropagation() line.

javier-HEG commented 12 years ago

According to this source, such a behavior could be happening because there are multiple DOM Ready functions inside the HTML <body/> tag.

Currently I'm using a temporary solution proposed by a commenter, to unbind and then bind again the click event: $(‘select’).unbind(‘click’).bind(‘click’,handler);.