Add in code for mailstats panel in SM2 - not complete

This commit is contained in:
2025-04-05 12:19:40 +01:00
parent cd4a0b1725
commit 7fcdfccfa6
8 changed files with 1050 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
/*
Generated by: SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-05 11:59:08
*/
.Mailstats-panel {}
.name {}
.rout {}
.grou1 {}
.link1 {}
.endg1 {}
.subh1 {}
.para1 {}
.sele1 {}
.obje2 {}
.name {}
.rout {}
.sele4 {}
.grou1 {}
.subh {}
.emai3 {}
.text5 {}
.numb6 {}
.text7 {}
.pass8 {}
.endg1 {}
.sele9 {}
.grou2 {}
.subh2 {}
.text10 {}
.numb11 {}
.text12 {}
.pass13 {}
.endg2 {}
.subh3 {}
.mult14 {}
.text15 {}
.sele16 {}
.sele17 {}
.sele24 {}
.text18 {}
.text19 {}
.text20 {}
.subh4 {}
.numb21 {}
.numb22 {}
.subm23 {}

View File

@@ -0,0 +1,40 @@
//
//Generated by: SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-04-05 11:17:38
//
$(document).ready(function() {
});
// Initialize multiselect with existing text values
function initMultiselect() {
const multiselect = document.getElementById('CountrySelect_select');
const textInput = document.getElementById('AccumCountryCodes_text');
// Split text input values and select corresponding options
textInput.value.split(',').forEach(value => {
const option = Array.from(multiselect.options).find(opt => opt.value === value.trim());
if (option) option.selected = true;
});
}
// Update text input when multiselect changes
function updateTextInput() {
const multiselect = document.getElementById('CountrySelect_select');
const textInput = document.getElementById('AccumCountryCodes_text');
// Get selected values as comma-separated string
const selectedValues = Array.from(multiselect.selectedOptions)
.map(option => option.value)
.join(',');
textInput.value = selectedValues;
}
// Initialize on page load
document.addEventListener('DOMContentLoaded', () => {
initMultiselect();
// Add change listener to multiselect
document.getElementById('CountrySelect_select')
.addEventListener('click', updateTextInput);
});