This block's (71-90) kind of big for a `$(document).ready()` - the other stuff is "ok, thing was clicked, open a dialog", this seems to define a lot of behaviour that I'd have to decode. Can we extract method here with a nice, fat, meaningful name for the comprehensionally-challenged?