From fccbe9f922b92b044677bc7d1b47fd50f4ef0e8c Mon Sep 17 00:00:00 2001 From: daria Date: Wed, 4 Dec 2024 12:26:42 +0200 Subject: [PATCH] change syntax --- www/common/drive-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index c5bb2f8f6..2fd256886 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -2969,14 +2969,14 @@ define([ UI.openCustomModal(m); }; - function triggerEnter(selector, $context) { + var triggerEnter = function (selector, $context) { $context.find(selector).on('keypress', function (event) { if (event.which === 13) { // enter event.preventDefault(); $(this).trigger('click'); // the keypress event triggers the click event } }); - } + }; var addNewPadHandlers = function ($block, isInRoot) { // Handlers