twosigma/beaker-notebook — pull request #480 by anglee (2014-08-15 16:14:17+00:00)
Title: Fix #353, handle server disconnects on client(mainapp).

When server disconnects, there will be a dialog prompting the user
about server has disconnected and asking to save the notebook
as a file on the client side. If user chose not to, the dialog is
dismissed and beaker starts hijacking keypress events to prompt the
same dialog again on such events. The dialog can also be opened by
clicking on the red 'offline' label on the nav bar.