Skip to content

A free open source IT asset/license management system

Fixed #10881 - bad merge with bootstrap-tables changes

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