From b8ef0721805b9c06010b0b447d5321b148e673e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mauro=20Ferr=C3=A3o?= Date: Thu, 9 Jan 2025 16:19:25 +0000 Subject: [PATCH] Fix user search enter key refresh (#2846) relates to xibosignageltd/xibo-private#890 --- ui/src/core/xibo-cms.js | 3 ++- ui/src/core/xibo-datatables.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/core/xibo-cms.js b/ui/src/core/xibo-cms.js index cec10ca10a..e42b85bf4f 100644 --- a/ui/src/core/xibo-cms.js +++ b/ui/src/core/xibo-cms.js @@ -1705,8 +1705,9 @@ window.XiboFormRender = function(sourceObj, data = null) { $('#folder-tree-form-modal').remove(); } - // Call Xibo Init for this form + // Call Xibo Init and Init Datatables for this form XiboInitialise('#' + dialog.attr('id')); + XiboInitDatatables('#' + dialog.attr('id')); if (dialog.find('.XiboForm').attr('id') != undefined) { // if this is add form and we have some folderId diff --git a/ui/src/core/xibo-datatables.js b/ui/src/core/xibo-datatables.js index b6072f19ad..6af50a46b1 100644 --- a/ui/src/core/xibo-datatables.js +++ b/ui/src/core/xibo-datatables.js @@ -146,7 +146,7 @@ window.XiboInitDatatables = function(scope, options) { } } - // Prevent enter key to submit form + // Handle clear filter $target.find('.XiboFilter .clear-filter-btn').off() .on('click', function() { // Reset fields