Update html title strings according to #1703

This commit is contained in:
jpirnay
2026-04-23 09:29:28 +02:00
parent e5e825e7a5
commit 4981086a1d
2 changed files with 16 additions and 9 deletions
+15 -8
View File
@@ -4,12 +4,13 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CrossPoint Reader - Files</title>
<title>Files - CrossPoint Reader</title>
<script src="/js/jszip.min.js"></script>
<style>
html {
scrollbar-gutter: stable;
}
:root {
--font-color: #333;
--bg: #f5f5f5;
@@ -1831,8 +1832,10 @@
<div class="action-buttons">
<button class="action-btn upload-action-btn" onclick="openUploadModal()">📤 Upload</button>
<button class="action-btn folder-action-btn" onclick="openFolderModal()">📁 New Folder</button>
<button id="moveActionBtn" class="action-btn move-action-btn" onclick="openMoveSelectedModal()" disabled>➡️ Move</button>
<button id="deleteActionBtn" class="action-btn delete-action-btn" onclick="openDeleteSelectedModal()" disabled>🗑️ Delete</button>
<button id="moveActionBtn" class="action-btn move-action-btn" onclick="openMoveSelectedModal()" disabled>➡️
Move</button>
<button id="deleteActionBtn" class="action-btn delete-action-btn" onclick="openDeleteSelectedModal()" disabled>🗑️
Delete</button>
</div>
</div>
@@ -2102,7 +2105,11 @@
<script>
// get current path from query parameter
const currentPath = decodeURIComponent(new URLSearchParams(window.location.search).get('path') || '/');
if (currentPath !== '/') {
const leaf = currentPath.split('/').filter(Boolean).pop();
if (leaf) document.title = leaf + ' - Files - CrossPoint Reader';
}
// Network status monitoring
let isNetworkOnline = navigator.onLine;
@@ -2364,10 +2371,10 @@
fileTableContent += '</tbody></table>';
fileTable.innerHTML = fileTableContent;
document.getElementById('file-table').addEventListener('change', function(e) {
document.getElementById('file-table').addEventListener('change', function (e) {
if (e.target.classList.contains('select-item')) updateToolbarState();
});
document.getElementById('file-table').addEventListener('click', function(e) {
document.getElementById('file-table').addEventListener('click', function (e) {
const btn = e.target.closest('button[data-action]');
if (!btn) return;
const name = btn.dataset.name;
@@ -5794,7 +5801,7 @@
const xhr = new XMLHttpRequest();
xhr.open('POST', '/move', true);
xhr.onload = function() {
xhr.onload = function () {
if (xhr.status === 200) {
successfulMoves++;
} else {
@@ -5803,7 +5810,7 @@
}
moveNext(index + 1);
};
xhr.onerror = function() {
xhr.onerror = function () {
hasErrors = true;
showNotification('Failed to move ' + paths[index] + ' - network error', 'error');
moveNext(index + 1);
+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CrossPoint Reader - Settings</title>
<title>Settings - CrossPoint Reader</title>
<style>
html {
scrollbar-gutter: stable;