mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
lint compliance
This commit is contained in:
parent
d17265f2eb
commit
5c4e2bbfb4
@ -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();
|
||||
|
||||
|
||||
@ -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: [],
|
||||
}];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user