aboutsummaryrefslogtreecommitdiff
path: root/templates/page.julius
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-30 20:33:23 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-30 20:33:23 -0400
commitd3413ee5a98367bc2f3c56011db8c9393306d80b (patch)
treefb64f9a36846cfc8a5f7d0bd049368ddc4b1258c /templates/page.julius
parent9648acc7a4edd44a080f40d8e918b1388b24171a (diff)
further refactoring my js
Diffstat (limited to 'templates/page.julius')
-rw-r--r--templates/page.julius17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/page.julius b/templates/page.julius
new file mode 100644
index 000000000..a9d0b4223
--- /dev/null
+++ b/templates/page.julius
@@ -0,0 +1,17 @@
+connfailed =
+ '<div id="modal" class="modal fade">' +
+ ' <div class="modal-header">' +
+ ' <h3>git-annex has shut down</h3>' +
+ ' </div>' +
+ ' <div class="modal-body">' +
+ ' You can now close this browser window.' +
+ ' </div>' +
+ '</div>' ;
+
+function webapp_disconnected () {
+ $('#modal').replaceWith(connfailed);
+ $('#modal').modal('show');
+
+ // ideal, but blocked by many browsers
+ window.close();
+}