Remove checkmark icon, refresh files tab after upload
Replace page redirect with HTMX tab click to reload the files
view in place after showing "Upload complete" for 1.5s.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 files changed,
+9 insertions,
-7 deletions
| 279 |
279 |
|
});
|
| 280 |
280 |
|
document.getElementById('version-upload-progress').classList.add('hidden');
|
| 281 |
281 |
|
document.getElementById('version-upload-success').classList.remove('hidden');
|
| 282 |
|
- |
setTimeout(function() { window.location.href = '/dashboard/item/' + itemId + '#tab-files'; }, 1500);
|
|
282 |
+ |
setTimeout(function() {
|
|
283 |
+ |
var filesBtn = document.getElementById('tab-files');
|
|
284 |
+ |
if (filesBtn) filesBtn.click();
|
|
285 |
+ |
}, 1500);
|
| 283 |
286 |
|
})
|
| 284 |
287 |
|
.catch(function(err) { showVersionError(err.message || 'Upload failed'); });
|
| 285 |
288 |
|
}
|
| 122 |
122 |
|
{% endblock %}
|
| 123 |
123 |
|
|
| 124 |
124 |
|
{% block scripts %}
|
| 125 |
|
- |
<script src="/static/upload.js?v=0513"></script>
|
| 126 |
|
- |
<script src="/static/media-picker.js?v=0513"></script>
|
| 127 |
|
- |
<script src="/static/item-details.js?v=0513"></script>
|
| 128 |
|
- |
<script src="/static/item-upload.js?v=0513"></script>
|
|
125 |
+ |
<script src="/static/upload.js?v=0514"></script>
|
|
126 |
+ |
<script src="/static/media-picker.js?v=0514"></script>
|
|
127 |
+ |
<script src="/static/item-details.js?v=0514"></script>
|
|
128 |
+ |
<script src="/static/item-upload.js?v=0514"></script>
|
| 129 |
129 |
|
{% endblock %}
|
| 93 |
93 |
|
</div>
|
| 94 |
94 |
|
|
| 95 |
95 |
|
<div class="upload-success hidden" id="version-upload-success">
|
| 96 |
|
- |
<span class="success-icon">✓</span>
|
| 97 |
|
- |
<span>Upload complete</span>
|
|
96 |
+ |
<span>Upload complete.</span>
|
| 98 |
97 |
|
</div>
|
| 99 |
98 |
|
|
| 100 |
99 |
|
<div class="upload-error hidden" id="version-upload-error">
|