diff --git a/admin.php b/admin.php
index 79bdff4..cbd5c27 100644
--- a/admin.php
+++ b/admin.php
@@ -143,7 +143,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if ($action === 'update_welcome') {
$text = trim((string)($_POST['welcome_text'] ?? ''));
settingSet('welcome_text', $text);
- $message = 'Приветственное сообщение сохранено';
+ $message = 'Настройки сохранены';
}
if ($action === 'upload_before_bulk') {
@@ -794,17 +794,17 @@ function nextUniqueCodeName(string $base): string
Меню
- = $adminMode === 'sections' ? 'Разделы' : 'Выбор раздела для фото' ?>
+ Разделы
= h((string)$s['name']) ?> (= (int)$s['photos_count'] ?>)
@@ -834,11 +834,11 @@ function nextUniqueCodeName(string $base): string
- Приветственное сообщение (публичная часть)
+ Настройки
diff --git a/index.php b/index.php
index e3813d0..d1365dd 100644
--- a/index.php
+++ b/index.php
@@ -563,7 +563,7 @@ function outputWatermarked(string $path, string $mime): never
-
+
@@ -764,11 +764,6 @@ function outputWatermarked(string $path, string $mime): never
const commentTextarea = document.querySelector('.js-comment-textarea');
const commentForm = commentTextarea ? commentTextarea.closest('.js-comment-form') : null;
if (commentTextarea) {
- requestAnimationFrame(() => {
- commentTextarea.focus();
- commentTextarea.setSelectionRange(commentTextarea.value.length, commentTextarea.value.length);
- });
-
commentTextarea.addEventListener('keydown', (e) => {
if (!e.shiftKey || e.key !== 'Enter' || e.isComposing) {
return;