From 0adeb3a349673e45896465a70326a3d868c0eb77 Mon Sep 17 00:00:00 2001 From: benweet Date: Sun, 28 Apr 2013 00:16:38 +0100 Subject: [PATCH] Better error management --- cache.manifest | 2 +- css/main-min.css | 7 +++- css/main.css | 8 +++- index.html | 41 ++++++++++---------- js/Markdown.Extra.js | 1 + js/async-runner.js | 16 ++++---- js/config.js | 1 + js/core.js | 25 ++++++++---- js/dropbox-helper.js | 90 +++++++++++++++++++++++--------------------- js/file-manager.js | 10 +++-- js/github-helper.js | 67 ++++++++++++++++++++------------- js/google-helper.js | 89 ++++++++++++++++++++++--------------------- js/main-min.js | 8 +++- 13 files changed, 212 insertions(+), 153 deletions(-) diff --git a/cache.manifest b/cache.manifest index 8e52aa46..b2e675c9 100644 --- a/cache.manifest +++ b/cache.manifest @@ -1 +1 @@ -CACHE MANIFEST # v14 CACHE: index.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: * +CACHE MANIFEST # v15 CACHE: index.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: * diff --git a/css/main-min.css b/css/main-min.css index 286409be..1cbf8070 100644 --- a/css/main-min.css +++ b/css/main-min.css @@ -5565,13 +5565,16 @@ hr { height: 16px; background-position: -109px 0; } -.icon-spinner { - background-image: url("../img/ajax-loader.gif"); +.working-indicator { + background-image: none; width: 43px; height: 11px; background-position: 0 0; margin: 14px 15px 0; } +.working-indicator.show { + background-image: url("../img/ajax-loader.gif"); +} .ui-layout-toggler-north .caret, .ui-layout-toggler-south .caret { margin-top: 5px; } diff --git a/css/main.css b/css/main.css index bc20c269..dae5950f 100644 --- a/css/main.css +++ b/css/main.css @@ -274,14 +274,18 @@ hr { background-position: -109px 0; } -.icon-spinner { - background-image: url("../img/ajax-loader.gif"); +.working-indicator { + background-image: none; width: 43px; height: 11px; background-position: 0 0; margin: 14px 15px 0; } +.working-indicator.show { + background-image: url("../img/ajax-loader.gif"); +} + .ui-layout-toggler-north .caret, .ui-layout-toggler-south .caret { margin-top: 5px; } diff --git a/index.html b/index.html index 70a687eb..638731ba 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ dep = "main"; css = "css/main.css"; } - document.write(''); + document.write(''); var require = { baseUrl : "js", deps : [ dep ] }; @@ -111,7 +111,7 @@