Skip to content

Commit 35c50bf

Browse files
fix bulk (#7)
1 parent 78b9126 commit 35c50bf

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ All options that should not be provided directly as data-attributes of the table
670670
| Option | Type | Default |
671671
| -------------------------- | ------ | ------------------------------- |
672672
| tableClassNames | string | "table table-stripped table-sm" |
673-
| enableCheckbox | bool | true |
673+
| enableCheckbox | bool | false |
674674
| bulkUrl | string | "" |
675675
| bulkActionSelectClassNames | string | "form-control" |
676676
| bulkActions | array | [ ] |

assets/app.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@ $(function () {
8181
const $bulkForm = $("#bulk_form_" + tableName);
8282
$bulkForm.submit(function (e) {
8383
const selectedRows = $table.bootstrapTable("getSelections");
84-
const hidden = $table.find("bulk_form_" + tableName + " input[type=hidden]");
84+
const hidden = $("#bulk_form_" + tableName + " input[type=hidden]");
8585
hidden.val(JSON.stringify(selectedRows));
8686
});
8787
});
88-
89-
9088
}
9189
});

src/HelloBootstrapTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ protected function configureTableOptions(OptionsResolver $resolver)
297297
{
298298
$resolver->setDefaults(array(
299299
'tableClassNames' => 'table table-striped table-sm',
300-
'enableCheckbox' => true,
300+
'enableCheckbox' => false,
301301
'bulkUrl' => '',
302302
'bulkActionSelectClassNames' => 'form-control',
303303
'bulkActions' => array(),

src/Resources/public/bootstrap-table.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Twig/BootstrapTableTwigExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
class BootstrapTableTwigExtension extends AbstractExtension
1515
{
16-
const ASSET_VERSION = "0.3.3";
16+
const ASSET_VERSION = "0.3.4";
1717

1818
/**
1919
* {@inheritdoc}

0 commit comments

Comments
 (0)