nodebb-plugin-calendar-onekite 11.2.4 → 11.2.6

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 +13 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-calendar-onekite",
3
- "version": "11.2.4",
3
+ "version": "11.2.6",
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
@@ -16,6 +16,13 @@ define('forum/calendar-onekite', ['alerts', 'bootbox', 'hooks'], function (alert
16
16
  padding-top: .375rem;
17
17
  padding-bottom: .375rem;
18
18
  line-height: 1.25;
19
+ width: 100%;
20
+ max-width: 100%;
21
+ box-sizing: border-box;
22
+ padding-right: 3rem; /* leave room for caret */
23
+ min-width: 7rem;
24
+ text-overflow: clip;
25
+ white-space: nowrap;
19
26
  }
20
27
  `;
21
28
  document.head.appendChild(style);
@@ -694,6 +701,12 @@ function toDatetimeLocalValue(date) {
694
701
  `;
695
702
 
696
703
  return new Promise((resolve) => {
704
+ let settled = false;
705
+ const safeResolve = (v) => {
706
+ if (settled) { return; }
707
+ settled = true;
708
+ resolve(v);
709
+ };
697
710
  const dlg = bootbox.dialog({
698
711
  title: 'Demander une réservation',
699
712
  message: messageHtml,