diff --git a/dist/PublicLab.Editor.js b/dist/PublicLab.Editor.js
index 96f208b0..e71eef3f 100644
--- a/dist/PublicLab.Editor.js
+++ b/dist/PublicLab.Editor.js
@@ -11522,7 +11522,7 @@ module.exports = tokenizeLinks;
},{}],114:[function(require,module,exports){
//! moment.js
-//! version : 2.27.0
+//! version : 2.29.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
@@ -14063,8 +14063,7 @@ module.exports = tokenizeLinks;
hooks.createFromInputFallback = deprecate(
'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +
'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +
- 'discouraged and will be removed in an upcoming major release. Please refer to ' +
- 'http://momentjs.com/guides/#/warnings/js-date/ for more info.',
+ 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',
function (config) {
config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));
}
@@ -15249,7 +15248,10 @@ module.exports = tokenizeLinks;
function calendar$1(time, formats) {
// Support for single parameter, formats only overload to the calendar function
if (arguments.length === 1) {
- if (isMomentInput(arguments[0])) {
+ if (!arguments[0]) {
+ time = undefined;
+ formats = undefined;
+ } else if (isMomentInput(arguments[0])) {
time = arguments[0];
formats = undefined;
} else if (isCalendarSpec(arguments[0])) {
@@ -15927,7 +15929,7 @@ module.exports = tokenizeLinks;
eras = this.localeData().eras();
for (i = 0, l = eras.length; i < l; ++i) {
// truncate time
- val = this.startOf('day').valueOf();
+ val = this.clone().startOf('day').valueOf();
if (eras[i].since <= val && val <= eras[i].until) {
return eras[i].name;
@@ -15947,7 +15949,7 @@ module.exports = tokenizeLinks;
eras = this.localeData().eras();
for (i = 0, l = eras.length; i < l; ++i) {
// truncate time
- val = this.startOf('day').valueOf();
+ val = this.clone().startOf('day').valueOf();
if (eras[i].since <= val && val <= eras[i].until) {
return eras[i].narrow;
@@ -15967,7 +15969,7 @@ module.exports = tokenizeLinks;
eras = this.localeData().eras();
for (i = 0, l = eras.length; i < l; ++i) {
// truncate time
- val = this.startOf('day').valueOf();
+ val = this.clone().startOf('day').valueOf();
if (eras[i].since <= val && val <= eras[i].until) {
return eras[i].abbr;
@@ -15990,7 +15992,7 @@ module.exports = tokenizeLinks;
dir = eras[i].since <= eras[i].until ? +1 : -1;
// truncate time
- val = this.startOf('day').valueOf();
+ val = this.clone().startOf('day').valueOf();
if (
(eras[i].since <= val && val <= eras[i].until) ||
@@ -17141,7 +17143,7 @@ module.exports = tokenizeLinks;
//! moment.js
- hooks.version = '2.27.0';
+ hooks.version = '2.29.1';
setHookCallback(createLocal);
@@ -22654,7 +22656,7 @@ module.exports = {
},{}],185:[function(require,module,exports){
var builder = '
';
$('.woofmark-command-table').attr('data-content', builder);
@@ -23422,7 +23424,7 @@ module.exports = PublicLab.RichTextModule = PublicLab.Module.extend({
icon: "clock-o",
position: 90,
text:
- "Your work is auto-saved so you can return to it in this browser. To recover drafts, open the menu below."
+ "Your work is auto-saved so you can return to it in this browser. To recover drafts, open the menu below."
}
];
@@ -23882,7 +23884,7 @@ module.exports = function relatedNodes(module) {
relatedEl.find('.result').remove();
relatedResults.slice(0, 8).forEach(function(result) {
- relatedEl.append('