How would I disable all links with the button class after they are clicked once? I\'d like to be able to do this in one place, and not have to change all of the
var clickRunning = false;
function OpenSth(){
if (clickRunning) return;
clickRunning = true;
yourFunc({
/* do your stuff*/
},500, function () {
clickRunning= false;
});
}