Merge pull request #1072 from byted/fix/issue_943-update_all_button

Fix Issue #943: Update All button not working
pull/1073/head
Jasper van Merle 5 years ago committed by GitHub
commit 32ba4206ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -56,7 +56,7 @@ class app.views.OfflinePage extends app.View
action = 'install' if action is 'update' action = 'install' if action is 'update'
doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc)) doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc))
el.parentNode.innerHTML = "#{el.textContent.replace(/e$/, '')}ing…" el.parentNode.innerHTML = "#{el.textContent.replace(/e$/, '')}ing…"
else if action = el.getAttribute('data-action-all') else if action = el.getAttribute('data-action-all') || el.parentElement.getAttribute('data-action-all')
return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?') return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?')
app.db.migrate() app.db.migrate()
$.click(el) for el in @findAll("[data-action='#{action}']") $.click(el) for el in @findAll("[data-action='#{action}']")

Loading…
Cancel
Save