Skip to content

Commit 6107d32

Browse files
committed
build(deps): bump datatables.net-select-bs from 1.2.2 to 3.1.3
1 parent ee140cd commit 6107d32

3 files changed

Lines changed: 15 additions & 26 deletions

File tree

assets/src/css/datatables.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ table.dataTable thead th.sorting:after,
3636
table.dataTable thead th.sorting_asc:after,
3737
table.dataTable thead th.sorting_desc:after {
3838
position: absolute;
39-
top: 20px;
39+
top: 12px;
4040
right: 8px;
4141
display: block;
4242
font-family: FontAwesome;
@@ -64,6 +64,15 @@ div.dataTables_scrollBody table.dataTable thead th.sorting_desc:after {
6464
}
6565

6666

67+
/* In Bootstrap and Foundation the padding top is a little different from the DataTables stylesheet */
68+
69+
table.table thead th.sorting:after,
70+
table.table thead th.sorting_asc:after,
71+
table.table thead th.sorting_desc:after {
72+
top: 8px;
73+
}
74+
75+
6776
/*
6877
* DataTables style pagination controls
6978
*/

assets/src/js/base/datatables-buttons.js

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -53,30 +53,10 @@ $(document).ready(function () {
5353
var wrapper = getTable(table_selector);
5454
var table = wrapper.datatable;
5555

56-
// Visualizzazione del caricamento
57-
$("#main_loading").show();
58-
59-
// Parametri della richiesta
60-
var params = table.ajax.params();
61-
params.length = -1;
62-
63-
$.ajax({
64-
url: table.ajax.url(),
65-
data: params,
66-
type: 'GET',
67-
dataType: "json",
68-
success: function (response) {
69-
var row_ids = response.data.map(function (a) {
70-
return a.id;
71-
});
72-
73-
// Chiamata di selezione completa
74-
wrapper.addSelectedRows(row_ids);
75-
table.clear().draw();
76-
77-
$("#main_loading").hide();
78-
}
79-
})
56+
// Selezione di tutte le righe della tabella corrente senza caricamento
57+
var row_ids = table.rows().ids().toArray();
58+
wrapper.addSelectedRows(row_ids);
59+
table.clear().draw();
8060
});
8161

8262
$(".btn-select-none").click(function () {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"datatables.net-bs": "^2.3.6",
2323
"datatables.net-buttons-bs": "^1.3.1",
2424
"datatables.net-scroller-bs": "^2.4.3",
25-
"datatables.net-select-bs": "^1.2.2",
25+
"datatables.net-select-bs": "^3.1.3",
2626
"dropzone": "^5.7.2",
2727
"eonasdan-bootstrap-datetimepicker": "^4.17.49",
2828
"font-awesome": "^4.7.0",

0 commit comments

Comments
 (0)