fix wrong this scope

This commit is contained in:
Noli 2022-03-25 20:44:25 +01:00
parent 6ed50ee1e9
commit 8270d92073
1 changed files with 2 additions and 1 deletions

View File

@ -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()});
});
}
);