Merge branch 'staging' into invitations

This commit is contained in:
yflory 2024-01-24 16:25:58 +01:00
commit db7eb7ca63
4 changed files with 11 additions and 6 deletions

View File

@ -37,12 +37,12 @@
}
}
.cp-admin-setlimit-form, .cp-admin-broadcast-form {
label {
.cp-sidebarlayout-element {
label:not(> label) {
font-weight: normal !important;
}
input {
max-width: 400px;
max-width: 25rem;
}
nav {
display: flex;

View File

@ -498,6 +498,7 @@ define([
if (!toShow) { return defaultDismiss(common, data)(); }
var slice = toShow.length > 200;
var unsafe = toShow;
toShow = Util.fixHTML(toShow);
content.getFormatText = function () {
@ -510,7 +511,7 @@ define([
content.handler = function () {
var content = h('div', [
h('h4', Messages.broadcast_newCustom),
h('div.cp-admin-message', toShow)
h('div.cp-admin-message', unsafe) // Use unsafe string, hyperscript is safe
]);
UI.alert(content);
};

View File

@ -130,7 +130,6 @@ define([
var ext = s.pop() || 'bin';
var name = s.join('');
var replacement = '';
console.error(name);
var sanitized = name
.replace(illegalRe, replacement)
.replace(controlRe, replacement)

View File

@ -30,17 +30,22 @@ define([
enableTime: true,
time_24hr: is24h,
dateFormat: dateFormat,
minDate: start.date
minDate: start.date,
onChange: function () {
duration = parseDate(e.value) - parseDate(s.value);
}
});
endPickr.setDate(end.date);
var s = $(start.input)[0];
var duration = end.date - start.date;
var startPickr = Flatpickr(s, {
enableTime: true,
time_24hr: is24h,
dateFormat: dateFormat,
onChange: function () {
endPickr.set('minDate', parseDate(s.value));
endPickr.setDate(parseDate(s.value).getTime() + duration);
}
});
startPickr.setDate(start.date);