From e23f8a0c28901c5bb545db561272d2691575aa6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Tue, 28 Jan 2025 10:43:29 +0000 Subject: [PATCH] Assign Layouts: shows error in console (#2882) relates to xibosignageltd/xibo-private#920 --- ui/src/core/forms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/core/forms.js b/ui/src/core/forms.js index c6bdb577e7..a4743d0fee 100644 --- a/ui/src/core/forms.js +++ b/ui/src/core/forms.js @@ -4590,7 +4590,7 @@ window.forms = { dataTableDraw(e, settings); // Clicky on the +spans - $('.assignItem', '#layoutAssignments').on('click', function() { + $('.assignItem', '#layoutAssignments').on('click', function(ev) { // Get the row that this is in. const data = layoutTable.row($(ev.currentTarget).closest('tr')).data(); @@ -4623,7 +4623,7 @@ window.forms = { $('#FileAssociationsSortable').sortable(); // Bind to the existing items in the list - $('#FileAssociationsSortable').find('li span').on('click', function() { + $('#FileAssociationsSortable').find('li span').on('click', function(ev) { container.data().layout[$(ev.currentTarget).parent().data().layoutId] = 0; $(ev.currentTarget).parent().remove(); });