Update html title strings according to #1703
This commit is contained in:
@@ -4,12 +4,13 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<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>
|
<script src="/js/jszip.min.js"></script>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
scrollbar-gutter: stable;
|
scrollbar-gutter: stable;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--font-color: #333;
|
--font-color: #333;
|
||||||
--bg: #f5f5f5;
|
--bg: #f5f5f5;
|
||||||
@@ -1831,8 +1832,10 @@
|
|||||||
<div class="action-buttons">
|
<div class="action-buttons">
|
||||||
<button class="action-btn upload-action-btn" onclick="openUploadModal()">📤 Upload</button>
|
<button class="action-btn upload-action-btn" onclick="openUploadModal()">📤 Upload</button>
|
||||||
<button class="action-btn folder-action-btn" onclick="openFolderModal()">📁 New Folder</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="moveActionBtn" class="action-btn move-action-btn" onclick="openMoveSelectedModal()" disabled>➡️
|
||||||
<button id="deleteActionBtn" class="action-btn delete-action-btn" onclick="openDeleteSelectedModal()" disabled>🗑️ Delete</button>
|
Move</button>
|
||||||
|
<button id="deleteActionBtn" class="action-btn delete-action-btn" onclick="openDeleteSelectedModal()" disabled>🗑️
|
||||||
|
Delete</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -2102,6 +2105,10 @@
|
|||||||
<script>
|
<script>
|
||||||
// get current path from query parameter
|
// get current path from query parameter
|
||||||
const currentPath = decodeURIComponent(new URLSearchParams(window.location.search).get('path') || '/');
|
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
|
// Network status monitoring
|
||||||
let isNetworkOnline = navigator.onLine;
|
let isNetworkOnline = navigator.onLine;
|
||||||
@@ -2364,10 +2371,10 @@
|
|||||||
|
|
||||||
fileTableContent += '</tbody></table>';
|
fileTableContent += '</tbody></table>';
|
||||||
fileTable.innerHTML = fileTableContent;
|
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();
|
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]');
|
const btn = e.target.closest('button[data-action]');
|
||||||
if (!btn) return;
|
if (!btn) return;
|
||||||
const name = btn.dataset.name;
|
const name = btn.dataset.name;
|
||||||
@@ -5794,7 +5801,7 @@
|
|||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open('POST', '/move', true);
|
xhr.open('POST', '/move', true);
|
||||||
xhr.onload = function() {
|
xhr.onload = function () {
|
||||||
if (xhr.status === 200) {
|
if (xhr.status === 200) {
|
||||||
successfulMoves++;
|
successfulMoves++;
|
||||||
} else {
|
} else {
|
||||||
@@ -5803,7 +5810,7 @@
|
|||||||
}
|
}
|
||||||
moveNext(index + 1);
|
moveNext(index + 1);
|
||||||
};
|
};
|
||||||
xhr.onerror = function() {
|
xhr.onerror = function () {
|
||||||
hasErrors = true;
|
hasErrors = true;
|
||||||
showNotification('Failed to move ' + paths[index] + ' - network error', 'error');
|
showNotification('Failed to move ' + paths[index] + ' - network error', 'error');
|
||||||
moveNext(index + 1);
|
moveNext(index + 1);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>CrossPoint Reader - Settings</title>
|
<title>Settings - CrossPoint Reader</title>
|
||||||
<style>
|
<style>
|
||||||
html {
|
html {
|
||||||
scrollbar-gutter: stable;
|
scrollbar-gutter: stable;
|
||||||
|
|||||||
Reference in New Issue
Block a user