Browse Source

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

Fix Issue #943: Update All button not working
Jasper van Merle 6 years ago
parent
commit
32ba4206ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/javascripts/views/content/offline_page.coffee

+ 1 - 1
assets/javascripts/views/content/offline_page.coffee

@@ -56,7 +56,7 @@ class app.views.OfflinePage extends app.View
       action = 'install' if action is 'update'
       doc[action](@onInstallSuccess.bind(@, doc), @onInstallError.bind(@, doc), @onInstallProgress.bind(@, doc))
       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?')
       app.db.migrate()
       $.click(el) for el in @findAll("[data-action='#{action}']")