Closes #913.
Showing the changes to assets/javascripts (1 of 1 file). Show all
Unified · Split
| @@ -57,6 +57,7 @@ class app.views.OfflinePage extends app.View · 56 unmodified lines | |||
| 57 | doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc)) | 57 | doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc)) |
| 58 | el.parentNode.innerHTML = "#{el.textContent.replace(/e$/, '')}ing…" | 58 | el.parentNode.innerHTML = "#{el.textContent.replace(/e$/, '')}ing…" |
| 59 | else if action = el.getAttribute('data-action-all') | 59 | else if action = el.getAttribute('data-action-all') |
| 60 | return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?') | ||
| 60 | app.db.migrate() | 61 | app.db.migrate() |
| 61 | $.click(el) for el in @findAll("[data-action='#{action}']") | 62 | $.click(el) for el in @findAll("[data-action='#{action}']") |
| 62 | return | 63 | return |