diff --git a/src/common/common-hash.js b/src/common/common-hash.js index 2d94372a6..0eb4faa37 100644 --- a/src/common/common-hash.js +++ b/src/common/common-hash.js @@ -317,8 +317,7 @@ Version 4: Data URL when not a realtime link yet (new pad or "static" app) if (parsed.password || opts.password) { hash += 'p/'; } if (opts.embed) { hash += 'embed/'; } if (opts.present) { hash += 'present/'; } - var versionHash = (typeof(opts.versionHash) !== "undefined") ? opts.versionHash : parsed.versionHash; - + var versionHash = typeof(opts.versionHash) !== "undefined" ? opts.versionHash : parsed.versionHash; if (versionHash) { hash += 'hash=' + Crypto.b64RemoveSlashes(versionHash) + '/'; } diff --git a/www/common/onlyoffice/history.js b/www/common/onlyoffice/history.js index fa546f135..d0ba35a34 100644 --- a/www/common/onlyoffice/history.js +++ b/www/common/onlyoffice/history.js @@ -83,7 +83,6 @@ define([ }; var showVersion = function (initial, position) { - v = getVersion(position, initial); if (initial) { v = Messages.oo_version_latest; @@ -164,7 +163,6 @@ define([ } var nextId = hashes[id+1] ? hashes[id+1] : undefined; - var toHash = nextId ? nextId.hash : config.onlyoffice.lastHash; var fromHash = cp?.hash || 'NONE'; @@ -177,7 +175,6 @@ define([ resolve(); }); }); - }; loadMoreOOHistory(); @@ -221,7 +218,6 @@ define([ $next.prop('disabled', 'disabled'); $fastNext.prop('disabled', 'disabled'); } - }; var loadingFalse = function () { @@ -298,7 +294,6 @@ define([ goBack(); }); } - goBack(); }; @@ -440,7 +435,7 @@ define([ showVersion(false, position) }); - // Go to next checkpoint + // Go to previous checkpoint $fastPrev.click(function () { if (loading) { return; } loading = true; @@ -458,7 +453,6 @@ define([ position = 0; loading = false; }); - onKeyDown = function (e) { var p = function () { e.preventDefault(); }; if ([38, 39].indexOf(e.which) >= 0) { p(); return $next.click(); } // Right diff --git a/www/common/onlyoffice/inner.js b/www/common/onlyoffice/inner.js index 1db54a889..bbdfaa889 100644 --- a/www/common/onlyoffice/inner.js +++ b/www/common/onlyoffice/inner.js @@ -3214,7 +3214,6 @@ Uncaught TypeError: Cannot read property 'calculatedType' of null if (obj && obj.hash && obj.time) { hash = obj.hash; time = obj.time; - } else { var major = Object.keys(content.hashes).length; var cpIndex = getLastCp().index || 0;