diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-30 14:50:32 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-30 14:50:32 -0400 |
commit | 78b3dada5b056320922cb9f453343ae4d95b0407 (patch) | |
tree | 216aaba0b7218ab80866c15f9e8b3fc023724bbf /templates/page.hamlet | |
parent | a9941308434354046fa51d3327c5e05ff080a247 (diff) |
better connection close handling
Depending on how the webapp was started up and whether the user clicked on
any links in it, window.close() may be disallowed by browser security
policy. Also if that fails, display a modal dialog that nicely blackens out
the webapp.
TODO: avoid Escape closing it. Bootstrap's docs are unclear about how to do
that.
Diffstat (limited to 'templates/page.hamlet')
-rw-r--r-- | templates/page.hamlet | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/page.hamlet b/templates/page.hamlet index 500424125..919724f87 100644 --- a/templates/page.hamlet +++ b/templates/page.hamlet @@ -21,3 +21,10 @@ <div .container-fluid> <div .row-fluid> ^{content} +<div #lostconnection .modal .fade> + <div .modal-header> + <h3> + git-annex has shut down + <div .modal-body> + <p> + You can now close this browser window. |