No Select on SearchPanes, when loadling language.json thru url

No Select on SearchPanes, when loadling language.json thru url

edgarjungedgarjung Posts: 1Questions: 1Answers: 0
edited January 2022 in SearchPanes

see test: http://live.datatables.net/suqirihi/1/edit

When adding

                language: {
                    url:  "http://cdn.datatables.net/plug-ins/1.11.4/i18n/de_de.json"
                }

to a SearchPanes Table, it is not possible to click the filter values. Removing the URL or even putting the json String inside language solves the problem as workaround.

initialization:

$(document).ready( function () {
            table = $('#example').DataTable({
                dom: 'Pfrtip',
                language: {
                    url:  "http://cdn.datatables.net/plug-ins/1.11.4/i18n/de_de.json"
                }
            });
} );

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Yep, something odd going on there. I've tried initialising SearchPanes within initComplete as well, but no joy there either.

    I've raised it internally (DD-2442 for my reference) and we'll report back here when there's an update.

    Cheers,

    Colin

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @edgarjung ,

    Thanks for pointing this out. That should be the issue fixed now as you can see at this example.

    This will be available in the next SearchPanes release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

    Thanks,
    Sandy

  • rsalbrsalb Posts: 1Questions: 0Answers: 0

    Hi,
    here is another problem related to the translation.
    The number of hits isn't displayed in the panes.

    greeting
    René

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    That's a problem with the German string for

                      searchPanes: {
                        count: ' {total}'
                      }
    

    It currently has {Anzahl} - I've updated the translation and that will make it to the file in the next release. In the meantime you could just host the file locally and make that change.

    Colin

Sign In or Register to comment.