nodebb-plugin-calendar-onekite 11.2.4 → 11.2.5

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 +11 -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.5",
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,11 @@ 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: 2.25rem; /* leave room for caret */
23
+ white-space: nowrap;
19
24
  }
20
25
  `;
21
26
  document.head.appendChild(style);
@@ -694,6 +699,12 @@ function toDatetimeLocalValue(date) {
694
699
  `;
695
700
 
696
701
  return new Promise((resolve) => {
702
+ let settled = false;
703
+ const safeResolve = (v) => {
704
+ if (settled) { return; }
705
+ settled = true;
706
+ resolve(v);
707
+ };
697
708
  const dlg = bootbox.dialog({
698
709
  title: 'Demander une réservation',
699
710
  message: messageHtml,