From 8270d92073aa12dd37b9664ea06ca7b39bd432ab Mon Sep 17 00:00:00 2001 From: Noli Date: Fri, 25 Mar 2022 20:44:25 +0100 Subject: [PATCH] fix wrong this scope --- static/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/static/application.js b/static/application.js index 03843fa2..176e10c4 100644 --- a/static/application.js +++ b/static/application.js @@ -176,8 +176,9 @@ function addSetting(ob) { window["label_"+ob.id] = reflb; // Is this still needed? // Add event function to input refin.on("input", function () { + var that = this sliders_throttle(ob.id, function () { - socket.send({'cmd': $(this).attr('id'), 'data': $(this).val()}); + socket.send({'cmd': $(that).attr('id'), 'data': $(that).val()}); }); } );