Skip to content

Commit 440daad

Browse files
Fix paging on datatables
1 parent 714af7f commit 440daad

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+21
-99
lines changed

css/includes/components/_utils.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,7 @@
100100
.hover-bg:hover {
101101
background-color: var(--glpi-hover-bg) !important;
102102
}
103+
104+
.border-transparent {
105+
border-color: transparent;
106+
}

src/AuthLDAP.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ public function showFormReplicatesConfig()
611611

612612
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
613613
'is_tab' => true,
614-
'nopager' => true,
615614
'nofilter' => true,
616615
'nosort' => true,
617616
'super_header' => __('List of LDAP directory replicates'),

src/Budget.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ public function showValuesByEntity()
635635
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
636636
'is_tab' => true,
637637
'nofilter' => true,
638-
'nopager' => true,
639638
'super_header' => __('Total spent on the budget'),
640639
'columns' => $columns,
641640
'formatters' => $formatters,

src/Cartridge.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,6 @@ public static function showForCartridgeItem(CartridgeItem $cartitem, $show_old =
912912

913913
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
914914
'is_tab' => true,
915-
'nopager' => true,
916915
'nofilter' => true,
917916
'nosort' => true,
918917
'super_header' => $show_old ? __('Worn cartridges') : __('Used cartridges'),
@@ -1204,7 +1203,6 @@ function viewEditCartridge(cart_id) {
12041203

12051204
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
12061205
'is_tab' => true,
1207-
'nopager' => true,
12081206
'nofilter' => true,
12091207
'nosort' => true,
12101208
'super_header' => $old ? __('Worn cartridges') : __('Used cartridges'),

src/Certificate_Item.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,6 @@ public static function showForCertificate(Certificate $certificate)
295295

296296
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
297297
'is_tab' => true,
298-
'nopager' => true,
299298
'nofilter' => true,
300299
'nosort' => true,
301300
'columns' => $columns,
@@ -448,7 +447,6 @@ public static function showForItem(CommonDBTM $item, $withtemplate = 0)
448447

449448
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
450449
'is_tab' => true,
451-
'nopager' => true,
452450
'nofilter' => true,
453451
'nosort' => true,
454452
'columns' => $columns,

src/Change_Problem.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ public static function showForProblem(Problem $problem)
174174

175175
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
176176
'is_tab' => true,
177-
'nopager' => true,
178177
'nofilter' => true,
179178
'nosort' => true,
180179
'columns' => $columns,
@@ -266,7 +265,6 @@ public static function showForChange(Change $change)
266265

267266
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
268267
'is_tab' => true,
269-
'nopager' => true,
270268
'nofilter' => true,
271269
'nosort' => true,
272270
'columns' => $columns,

src/Change_Ticket.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ public static function showForChange(Change $change)
280280

281281
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
282282
'is_tab' => true,
283-
'nopager' => true,
284283
'nofilter' => true,
285284
'nosort' => true,
286285
'columns' => $columns,
@@ -382,7 +381,6 @@ public static function showForTicket(Ticket $ticket)
382381

383382
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
384383
'is_tab' => true,
385-
'nopager' => true,
386384
'nofilter' => true,
387385
'nosort' => true,
388386
'columns' => $columns,

src/CommonDBTM.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5437,7 +5437,6 @@ public static function listTemplates($itemtype, $target, $add = false)
54375437
$twig_params = [
54385438
'datatable_params' => [
54395439
'is_tab' => true,
5440-
'nopager' => true,
54415440
'nofilter' => true,
54425441
'nosort' => true,
54435442
'columns' => $columns,

src/CommonDBVisible.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ public function showVisibility()
353353

354354
TemplateRenderer::getInstance()->display('components/datatable.html.twig', [
355355
'is_tab' => true,
356-
'nopager' => true,
357356
'nofilter' => true,
358357
'nosort' => true,
359358
'columns' => [

src/CommonITILCost.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ function viewAddCost{{ id }}_{{ rand }} (btn) {
635635
'datatable_id' => 'datatable_costs' . $ID . $rand,
636636
'is_tab' => true,
637637
'nofilter' => true,
638-
'nopager' => true,
639638
'super_header' => $super_header,
640639
'columns' => $columns,
641640
'formatters' => [

0 commit comments

Comments
 (0)