File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ table.dataTable thead th.sorting:after,
3636table .dataTable thead th .sorting_asc : after ,
3737table .dataTable thead th .sorting_desc : after {
3838 position : absolute;
39- top : 20 px ;
39+ top : 12 px ;
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 */
Original file line number Diff line number Diff 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 ( ) {
Original file line number Diff line number Diff line change 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" ,
You can’t perform that action at this time.
0 commit comments