Disable draft and edit links during ajax calls

STUD-1485
STUD-1499

@andy-armstrong , re-openning #3418 here