Fix modal: wider, remove name fields, fix labels, description 100% width
This commit is contained in:
+1
-4
@@ -270,7 +270,6 @@ async function openProfileModal() {
|
||||
const user = await response.json();
|
||||
console.log('openProfileModal user:', user);
|
||||
document.getElementById('profile-username-display').textContent = user.username || '';
|
||||
document.getElementById('profile-name').value = user.name || '';
|
||||
document.getElementById('profile-company').value = user.company || '';
|
||||
document.getElementById('profile-email').value = user.email || '';
|
||||
document.getElementById('profile-homepage').value = user.homepage || '';
|
||||
@@ -298,9 +297,8 @@ function logout() {
|
||||
}
|
||||
|
||||
async function saveProfile() {
|
||||
const name = document.getElementById('profile-name').value.trim();
|
||||
const company = document.getElementById('profile-company').value.trim();
|
||||
if (!name || !company) { alert('Bitte geben Sie Name und LLC-Namen ein.'); return; }
|
||||
if (!company) { alert('Bitte geben Sie LLC/SRL-Namen ein.'); return; }
|
||||
|
||||
try {
|
||||
const response = await fetch(PROFILE_URL, {
|
||||
@@ -308,7 +306,6 @@ async function saveProfile() {
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
username: document.getElementById('profile-username-display').textContent,
|
||||
name: name,
|
||||
company: company,
|
||||
email: document.getElementById('profile-email').value,
|
||||
homepage: document.getElementById('profile-homepage').value,
|
||||
|
||||
Reference in New Issue
Block a user