Fixed #10881 - bad merge with bootstrap-tables changes

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2022-03-29 22:57:00 +01:00
parent b2056816c9
commit 8ccf148799

View file

@ -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: {