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.
- package/package.json +1 -1
- package/public/client.js +11 -0
package/package.json
CHANGED
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,
|