mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Keep cache button clickable after completion
Button now shows 'Refresh Cache' and stays enabled after download completes, allowing users to re-download/refresh the cache. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -794,8 +794,8 @@
|
||||
cacheProgress.classList.add('active');
|
||||
progressFill.style.width = '100%';
|
||||
progressText.innerHTML = '<span class="cache-complete">✓ Download complete! ' + data.total.toLocaleString() + ' pages available offline.</span>';
|
||||
startCacheBtn.textContent = 'Downloaded!';
|
||||
startCacheBtn.disabled = true;
|
||||
startCacheBtn.textContent = 'Refresh Cache';
|
||||
startCacheBtn.disabled = false;
|
||||
// Refresh the cache list
|
||||
setTimeout(checkCaches, 500);
|
||||
} else if (data.type === 'CACHE_ERROR') {
|
||||
|
||||
Reference in New Issue
Block a user