Nope, the links have no ids. I suppose document.getElementById
('edit_link').onbeforeunload = null might do the trick?
There's a bunch of these links all over the page. What I could do is
set them to a class and then disable the event on them using jquery in
one fell swoop.
It just seems like it should be so much easier. My current solution
involves a second toggling variable. While ugly, it saves me from
editing every page in the application and adding classes or ids to the
links.
(err on second thought, they already have classes to give them a
certain style -- using jquery might work)