From 8ccf1487990c0d4a081a317c5ae1f02c21057b45 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 29 Mar 2022 22:57:00 +0100 Subject: [PATCH] Fixed #10881 - bad merge with bootstrap-tables changes Signed-off-by: snipe --- resources/views/partials/bootstrap-table.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index 98fb784a33..ce248fe357 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -30,11 +30,11 @@ return false; } - $('.snipe-table').bootstrapTable({ + $('.snipe-table').bootstrapTable('destroy').each(function () { data_export_options = $(this).attr('data-export-options'); export_options = data_export_options? JSON.parse(data_export_options): {}; export_options['htmlContent'] = true; //always enforce this on the given data-export-options (to prevent XSS) - + $(this).bootstrapTable({ classes: 'table table-responsive table-no-bordered', ajaxOptions: {