From 67d31a92289fe3697a768fabf498ead681a10e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=20Mar=C3=ADa=20Mart=C3=ADnez=20G=C3=B3mez?= Date: Fri, 30 Nov 2018 14:33:11 +0100 Subject: [PATCH] Update DataTable to fix bug with search input See: https://github.com/openSUSE/open-build-service/pull/6410 --- _posts/atoms/2018-08-30-table.html | 45 +++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/_posts/atoms/2018-08-30-table.html b/_posts/atoms/2018-08-30-table.html index 2093621..4e06bd7 100644 --- a/_posts/atoms/2018-08-30-table.html +++ b/_posts/atoms/2018-08-30-table.html @@ -34,27 +34,26 @@ %h5 Table with DataTable -%table.responsive.table.table-striped.table-bordered#my-datatable - %thead - %tr - %th Fruits - %th Origin - %th Vendor - %tbody - %tr - %td Oranges - %td Bananas - %td Kiwis - %tr - %td Spain - %td Brazil - %td Germany - %tr - %td Fruits Are Us - %td Fruits & Vegetables Inc. - %td SUSE Fruit Company Ltd. +.obs-dataTable + %table.table.table-striped.table-bordered#my-datatable + %thead + %tr + %th Fruits + %th Origin + %th Vendor + %tbody + %tr + %td Oranges + %td Bananas + %td Kiwis + %tr + %td Spain + %td Brazil + %td Germany + %tr + %td Fruits Are Us + %td Fruits & Vegetables Inc. + %td SUSE Fruit Company Ltd. -:javascript - $('#my-datatable').DataTable({ - responsive: true - }); += content_for :ready_function do + initializeDataTable('#my-datatable');