Showing the changes to assets/javascripts (1 of 10 files). Show all
Unified · Split
| @@ -10,7 +10,6 @@ · 9 unmodified lines | ||
| 10 | 10 | init: -> |
| 11 | 11 | try @initErrorTracking() catch |
| 12 | 12 | return unless @browserCheck() |
| 13 | − @showLoading() | |
| 14 | 13 | |
| 15 | 14 | @el = $('._app') |
| 16 | 15 | @localStorage = new LocalStorageStore |
| @@ -38,8 +37,8 @@ · 21 unmodified lines | ||
| 38 | 37 | |
| 39 | 38 | browserCheck: -> |
| 40 | 39 | return true if @isSupportedBrowser() |
| 41 | − document.body.className = '' | |
| 42 | 40 | document.body.innerHTML = app.templates.unsupportedBrowser |
| 41 | + @hideLoadingScreen() | |
| 43 | 42 | false |
| 44 | 43 | |
| 45 | 44 | initErrorTracking: -> |
| @@ -103,7 +102,7 @@ · 57 unmodified lines | ||
| 103 | 102 | @initDoc(doc) for doc in @docs.all() |
| 104 | 103 | @trigger 'ready' |
| 105 | 104 | @router.start() |
| 106 | − @hideLoading() | |
| 105 | + @hideLoadingScreen() | |
| 107 | 106 | setTimeout => |
| 108 | 107 | @welcomeBack() unless @doc |
| 109 | 108 | @removeEvent 'ready bootError' |
| @@ -181,15 +180,9 @@ · 71 unmodified lines | ||
| 181 | 180 | new app.views.Tip(tip) |
| 182 | 181 | return |
| 183 | 182 | |
| 184 | − showLoading: -> | |
| 185 | − document.body.classList.remove '_noscript' | |
| 186 | − document.body.classList.add '_loading' | |
| 187 | − return | |
| 188 | − | |
| 189 | − hideLoading: -> | |
| 183 | + hideLoadingScreen: -> | |
| 190 | 184 | document.body.classList.add '_overlay-scrollbars' if $.overlayScrollbarsEnabled() |
| 191 | − document.body.classList.remove '_booting' | |
| 192 | − document.body.classList.remove '_loading' | |
| 185 | + document.documentElement.classList.remove '_booting' | |
| 193 | 186 | return |
| 194 | 187 | |
| 195 | 188 | indexHost: -> |
| @@ -199,7 +192,7 @@ · 3 unmodified lines | ||
| 199 | 192 | |
| 200 | 193 | onBootError: (args...) -> |
| 201 | 194 | @trigger 'bootError' |
| 202 | − @hideLoading() | |
| 195 | + @hideLoadingScreen() | |
| 203 | 196 | return |
| 204 | 197 | |
| 205 | 198 | onQuotaExceeded: -> |
| @@ -221,7 +214,7 @@ · 15 unmodified lines | ||
| 221 | 214 | @onInjectionError() |
| 222 | 215 | else if @isAppError args... |
| 223 | 216 | @previousErrorHandler? args... |
| 224 | − @hideLoading() | |
| 217 | + @hideLoadingScreen() | |
| 225 | 218 | @errorNotif or= new app.views.Notif 'Error' |
| 226 | 219 | @errorNotif.show() |
| 227 | 220 | return |