From 5c4e2bbfb4053bf0ac602c2a0c98d4f8d2d25289 Mon Sep 17 00:00:00 2001 From: ansuz Date: Thu, 8 Oct 2020 15:15:58 +0530 Subject: [PATCH] lint compliance --- www/common/onlyoffice/history.js | 3 +-- www/common/sframe-common-history.js | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/www/common/onlyoffice/history.js b/www/common/onlyoffice/history.js index 4b16dfe2b..b8ae4b77d 100644 --- a/www/common/onlyoffice/history.js +++ b/www/common/onlyoffice/history.js @@ -48,6 +48,7 @@ define([ $hist.addClass('cp-smallpatch'); $hist.addClass('cp-history-oo'); var $bottom = $toolbar.find('.cp-toolbar-bottom'); + var Messages = common.Messages; var getVersion = function () { var major = sortedCp.length - cpIndex; @@ -137,8 +138,6 @@ define([ config.setHistory(true); - var Messages = common.Messages; - $hist.html('').css('display', 'flex'); $bottom.hide(); diff --git a/www/common/sframe-common-history.js b/www/common/sframe-common-history.js index 85d3d35bb..9362c7899 100644 --- a/www/common/sframe-common-history.js +++ b/www/common/sframe-common-history.js @@ -392,7 +392,7 @@ define([ }; */ - var makeSnapshot = function (title) { + var makeSnapshot = function (title, $input) { var idx = getIndex(c); if (!config.getLastMetadata || !config.setLastMetadata) { return; } try { @@ -622,7 +622,7 @@ define([ onClick: function () { var val = $input.val(); if (!val) { return true; } - makeSnapshot(val); + makeSnapshot(val, $input); }, keys: [], }];