From 3ff0eb116bbbd9ef0b45252de472c11887e558fe Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 22 Nov 2017 17:23:14 +0100 Subject: [PATCH 1/2] don't let search interfere with renaming --- www/drive/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drive/inner.js b/www/drive/inner.js index 957d44932..e57ea3cfa 100644 --- a/www/drive/inner.js +++ b/www/drive/inner.js @@ -582,6 +582,7 @@ define([ $input.on('keydown', function (e) { e.stopPropagation(); }); $input.on('keyup', function (e) { + e.stopPropagation(); if (e.which === 13) { removeInput(true); filesOp.rename(path, $input.val(), refresh); @@ -590,7 +591,7 @@ define([ if (e.which === 27) { removeInput(true); } - }); + }).on('keypress', function (e) { e.stopPropagation(); }); //$element.parent().append($input); $name.after($input); $input.focus(); From 1e9856647e2353b5c724e96be66a774b7a8508ee Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 22 Nov 2017 17:40:00 +0100 Subject: [PATCH 2/2] lint compliance --- check-accounts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/check-accounts.js b/check-accounts.js index cc3e91c76..4f37e51fd 100644 --- a/check-accounts.js +++ b/check-accounts.js @@ -1,3 +1,4 @@ +/* globals Buffer */ var Https = require('https'); var Config = require("./config.js"); var Package = require("./package.json"); @@ -18,7 +19,7 @@ var options = { } }; -var req = Https.request(options, function (response) { +Https.request(options, function (response) { if (!('' + response.statusCode).match(/^2\d\d$/)) { throw new Error('SERVER ERROR ' + response.statusCode); }