mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Clean up the bootstrap table export options
This commit is contained in:
parent
00ca30a205
commit
af9f3d5e1e
|
@ -31,14 +31,9 @@
|
|||
}
|
||||
|
||||
$('.snipe-table').bootstrapTable('destroy').each(function () {
|
||||
{{-- console.warn("Okay, what's 'this'?");
|
||||
console.dir(this); --}}
|
||||
export_options = JSON.parse($(this).attr('data-export-options'));
|
||||
export_options['htmlContent'] = true //always append this to the given data-export-options
|
||||
export_options['htmlContent'] = true; //always enforce this on the given data-export-options (to prevent XSS)
|
||||
|
||||
console.log("Export options on the table are:");
|
||||
console.dir(export_options)
|
||||
|
||||
$(this).bootstrapTable({
|
||||
classes: 'table table-responsive table-no-bordered',
|
||||
ajaxOptions: {
|
||||
|
|
Loading…
Reference in a new issue