From 1c28207c0388ca180d20a34fcdedf93cbe23bd2a Mon Sep 17 00:00:00 2001 From: ansuz Date: Tue, 22 Sep 2020 11:26:25 +0530 Subject: [PATCH] lint compliance --- www/common/drive-ui.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 63e8d96a7..bb6af01c4 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -50,17 +50,6 @@ define([ allowFolderUpload: File.prototype.hasOwnProperty("webkitRelativePath"), }; - $(window).keydown(function (e) { - if (e.which === 70 && e.ctrlKey) { - e.preventDefault(); - e.stopPropagation(); - if (APP.displayDirectory) { - APP.displayDirectory([SEARCH]); - } - return; - } - }); - var stringify = function (obj) { return JSONSortify(obj); }; @@ -164,6 +153,17 @@ define([ var localStore = window.cryptpadStore; APP.store = {}; + $(window).keydown(function (e) { + if (e.which === 70 && e.ctrlKey) { + e.preventDefault(); + e.stopPropagation(); + if (APP.displayDirectory) { + APP.displayDirectory([SEARCH]); + } + return; + } + }); + var makeLS = function (teamId) { var suffix = teamId ? ('-' + teamId) : ''; var LS_LAST = "app-drive-lastOpened" + suffix;