var longProcessLinks longProcess click function if longProcessLinks th

1
2
3
4
5
6
7
8
9
var longProcessLinks = {};
$("a.longProcess").click(
function(){
if(longProcessLinks[this]){
$(this).attr("href","#"); return false;
}
$(this).css('color','silver');
longProcessLinks[this]=true;
});