Unified · Split
| @@ -56,7 +56,7 @@ class app.views.OfflinePage extends app.View · 55 unmodified lines | ||
| 56 | 56 | action = 'install' if action is 'update' |
| 57 | 57 | doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc)) |
| 58 | 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') || el.parentElement.getAttribute('data-action-all') | |
| 60 | 60 | return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?') |
| 61 | 61 | app.db.migrate() |
| 62 | 62 | $.click(el) for el in @findAll("[data-action='#{action}']") |