mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Adds localization to Lumina.Presentation.Web project
This commit is contained in:
1 parent
771fa74991
commit
2c31fd8714
65 files changed
+1111
-319
No files matched your search
@@ -251,6 +251,7 @@ async function updateContent(url, addToHistory) {
|
||||
history.pushState(state, title, url);
|
||||
}
|
||||
} catch (error) {
|
||||
notificationService.show('Navigation failed', NotificationType.ERROR);
|
||||
console.error('Navigation failed:', error);
|
||||
}
|
||||
}
|
||||
@@ -529,12 +530,18 @@ document.addEventListener('change', function (e) {
|
||||
document.addEventListener('click', function (e) {
|
||||
if (e.target.matches('.enlightenment-option')) {
|
||||
var text = e.target.textContent;
|
||||
var value = e.target.getAttribute('data-value');
|
||||
var combobox = e.target.closest('.enlightenment-combobox');
|
||||
|
||||
// update the displayed text
|
||||
var selectedText = combobox.querySelector('.enlightenment-selected-text');
|
||||
if (selectedText)
|
||||
if (selectedText) {
|
||||
selectedText.textContent = text;
|
||||
// update the data-value attribute with the actual value
|
||||
selectedText.setAttribute('data-value', value);
|
||||
}
|
||||
|
||||
// close the dropdown
|
||||
var toggleCheckbox = combobox.querySelector('.enlightenment-toggle-checkbox');
|
||||
if (toggleCheckbox)
|
||||
toggleCheckbox.checked = false;
|
||||
|
||||
Reference in new issue
Block a user