mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Fixed #10881 - bad merge with bootstrap-tables changes
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
b2056816c9
commit
8ccf148799
|
@ -30,11 +30,11 @@
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.snipe-table').bootstrapTable({
|
$('.snipe-table').bootstrapTable('destroy').each(function () {
|
||||||
data_export_options = $(this).attr('data-export-options');
|
data_export_options = $(this).attr('data-export-options');
|
||||||
export_options = data_export_options? JSON.parse(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)
|
export_options['htmlContent'] = true; //always enforce this on the given data-export-options (to prevent XSS)
|
||||||
|
|
||||||
$(this).bootstrapTable({
|
$(this).bootstrapTable({
|
||||||
classes: 'table table-responsive table-no-bordered',
|
classes: 'table table-responsive table-no-bordered',
|
||||||
ajaxOptions: {
|
ajaxOptions: {
|
||||||
|
|
Loading…
Reference in a new issue