diff --git a/customize.dist/src/less2/include/markdown.less b/customize.dist/src/less2/include/markdown.less index 867dbacc9..1bd592d63 100644 --- a/customize.dist/src/less2/include/markdown.less +++ b/customize.dist/src/less2/include/markdown.less @@ -74,6 +74,7 @@ } } media-tag { + cursor: pointer; * { max-width: 100%; } @@ -93,6 +94,7 @@ pre.mermaid { svg { max-width: 100%; + cursor: pointer; } } } diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 677243399..25b1a320f 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1708,14 +1708,17 @@ define([ var ver = arr[1]; if (!ver) { return; } var verArr = ver.split('.'); - verArr[2] = 0; + //verArr[2] = 0; if (verArr.length !== 3) { return; } var stored = currentVersion || '0.0.0'; var storedArr = stored.split('.'); - storedArr[2] = 0; + //storedArr[2] = 0; + var shouldUpdate = JSON.stringify(verArr) !== JSON.stringify(storedArr); +/* var shouldUpdate = parseInt(verArr[0]) !== parseInt(storedArr[0]) || (parseInt(verArr[0]) === parseInt(storedArr[0]) && parseInt(verArr[1]) !== parseInt(storedArr[1])); +*/ if (!shouldUpdate) { return; } currentVersion = ver; localStorage[CRYPTPAD_VERSION] = ver; diff --git a/www/common/sframe-common.js b/www/common/sframe-common.js index a04a3a2dc..0eb35b824 100644 --- a/www/common/sframe-common.js +++ b/www/common/sframe-common.js @@ -650,6 +650,7 @@ define([ }); ctx.sframeChan.on('EV_NEW_VERSION', function () { + // XXX lock the UI and do the same in non-framework apps var $err = $('
').append(Messages.newVersionError); $err.find('a').click(function () { funcs.gotoURL();