Chỉnh sửa và tối ưu form đăng nhập và đăng ký

This commit is contained in:
2026-06-09 12:22:29 +07:00
parent 2fba77d50c
commit 9f9c38e6e7
9 changed files with 357 additions and 32 deletions
-21
View File
@@ -790,27 +790,6 @@ function closeActionModal() {
document.getElementById('action-choice-modal').style.display = 'none';
}
/**
* Opens the modal in Edit mode
*/
function openEditSceneModal(scene) {
document.getElementById('modal-scene-id').value = scene._id;
// Cập nhật để hỗ trợ cả cấu trúc cũ và mới (gps.lat/name)
document.getElementById('modal-lat').value = scene.gps?.lat || scene.lat;
document.getElementById('modal-lng').value = scene.gps?.lng || scene.lng;
const sceneName = scene.name || scene.title;
document.getElementById('modal-title').value = sceneName;
document.getElementById('modal-privacy').value = scene.privacy;
document.getElementById('modal-panorama').required = false; // Photo update is optional
const lang = systemSettings.language || 'vi';
const modalTitle = document.getElementById('create-scene-modal-title');
if (modalTitle) modalTitle.innerText = lang === 'vi' ? "Sửa 3D scene" : "Edit 3D scene";
toggleSharedUsers();
document.getElementById('create-scene-modal').style.display = 'flex';
}
/**
* Mở modal xác nhận xóa scene
*/