From 595db5b21dd38073e5c894dd74f2a4774bb25114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20H=C3=A1la?= Date: Thu, 28 Dec 2023 09:25:35 +0100 Subject: [PATCH] Fix transpose --- backend/static/js/chords.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/static/js/chords.js b/backend/static/js/chords.js index d3b5509..17270ad 100644 --- a/backend/static/js/chords.js +++ b/backend/static/js/chords.js @@ -16,7 +16,7 @@ function transpose(event, object, id) { const old_value = input.attr("previous_value"); const new_value = input.val(); const diff = new_value - old_value; - $("#" + id).find(".chord").each(function(element) { + $("#id" + id).find(".chord").each(function(element) { $( this ).html(transposeChord($( this ).html(), diff)) }); input.attr("previous_value", new_value);