mirror of https://github.com/xwiki-labs/cryptpad
Merge branch 'staging' into invitations
This commit is contained in:
commit
db7eb7ca63
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue