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