History

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

Fix Issue #943: Update All button not working

Jasper van Merle committed 7 years ago

Commit 32ba4202 parents ec252ca ea574871 file · +1 −1Browse files

Unified · Split

assets/javascripts/views/content/offline_page.coffee+1−1
@@ -56,7 +56,7 @@ class app.views.OfflinePage extends app.View · 55 unmodified lines
56 action = 'install' if action is 'update'56 action = 'install' if action is 'update'
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') || el.parentElement.getAttribute('data-action-all')
60 return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?')60 return unless action isnt 'uninstall' or window.confirm('Uninstall all docs?')
61 app.db.migrate()61 app.db.migrate()
62 $.click(el) for el in @findAll("[data-action='#{action}']")62 $.click(el) for el in @findAll("[data-action='#{action}']")