mirror of
https://github.com/thejakubruzicka/MNotes.git
synced 2025-07-10 14:34:05 +02:00
New version. Add Material UI implementation with theme customization, about dialog, and news system
This commit is contained in:
parent
5bc9c9bdb1
commit
1d58835a65
190 changed files with 12296 additions and 54 deletions
|
@ -126,7 +126,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
currentEditingId = null;
|
||||
noteDialog.querySelector('[slot="headline"]').textContent = 'Add New Note';
|
||||
}
|
||||
noteDialog.show();
|
||||
// Material Web Components use open property instead of show() method
|
||||
noteDialog.open = true;
|
||||
}
|
||||
|
||||
function handleDialogClose(event) {
|
||||
|
@ -159,7 +160,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
// then manually close if valid.
|
||||
// Since `method="dialog"` auto-closes, we re-show if invalid.
|
||||
// This is a common pattern if not using full form.requestSubmit().
|
||||
noteDialog.show(); // Re-open dialog if validation fails after it auto-closed.
|
||||
noteDialog.open = true; // Re-open dialog if validation fails after it auto-closed.
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue