Found a bug with setting defaults

Found a bug with setting defaults

pbercepberce Posts: 15Questions: 2Answers: 0
edited February 2014 in General
I've found that you cannot specify the oLanguage setting in the defaults. I've set up an example here:

http://live.datatables.net/eqOQ/1/edit?html,js,output

With oLanguage added to the default declaration the Search box is not rendered (in my instance on my server the page failed to load, though I couldn't produce that here), if you move this to the code creating the specific instance of the datatable it works fine.

Below is a link of it working as expected:

http://live.datatables.net/eqOQ/2/edit?html,js,output

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    > I've found that you cannot specify the oLanguage setting in the defaults

    Yes you can. but because you are extended a nested object, you need to use jQuery's deep extend, rather than a shallow extend as you were: http://live.datatables.net/eqOQ/3/edit

    Allan
  • pbercepberce Posts: 15Questions: 2Answers: 0
    awesome! thanks!
This discussion has been closed.