To prevent double-click ajax requests what about adding something like this:

    if ($link.hasClass('disabled')) {
        return;
    }