nodebb-plugin-onekite-calendar 2.0.79 → 2.0.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-onekite-calendar",
3
- "version": "2.0.79",
3
+ "version": "2.0.80",
4
4
  "description": "FullCalendar-based equipment reservation workflow with admin approval & HelloAsso payment for NodeBB",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -1365,9 +1365,10 @@ function toDatetimeLocalValue(date) {
1365
1365
  const searchEl = document.getElementById('onekite-item-search');
1366
1366
  if (searchEl) {
1367
1367
  searchEl.addEventListener('input', () => {
1368
- const q = searchEl.value.trim().toLowerCase();
1368
+ const normalize = (s) => String(s || '').normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase();
1369
+ const q = normalize(searchEl.value.trim());
1369
1370
  document.querySelectorAll('#onekite-items [data-itemid]').forEach((row) => {
1370
- const name = ((row.querySelector('input.onekite-item-cb') || {}).getAttribute('data-name') || '').toLowerCase();
1371
+ const name = normalize(row.querySelector('input.onekite-item-cb')?.getAttribute('data-name'));
1371
1372
  row.style.display = (!q || name.includes(q)) ? '' : 'none';
1372
1373
  });
1373
1374
  });