Datatables Downloader - Moment.js no longer available

Datatables Downloader - Moment.js no longer available

gamezxgamezx Posts: 2Questions: 1Answers: 0

Hi,

I wanted to upgrade the datatables version, but unfortunatelly I cannot because moment.js is missing, and I was using that extension. Is there a reason why? This is the version that I wanted to upgrade to:

Answers

  • rf1234rf1234 Posts: 2,949Questions: 87Answers: 416
    edited June 2020

    moment.js is not a data tables extension.However there are data tables extensions that require moment.js like one of the date time sorting plug ins referenced below.

    https://momentjs.com/

    <!-- Moment.js: -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
    <!-- Locales for moment.js-->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/locale/en-gb.js"></script>
        <script src="https://cdn.datatables.net/plug-ins/1.10.16/sorting/datetime-moment.js"></script>-->
    
  • gamezxgamezx Posts: 2Questions: 1Answers: 0

    Hi thanks for your answer.
    Well it was included in the past, as well as select2, that's why my question.
    It seems now I need to manually included, so I guess change of approach. I'll keep with old version, too much trouble and maybe not so much advantage on updating

    Rgds

  • kthorngrenkthorngren Posts: 21,172Questions: 26Answers: 4,923

    I think you used the Editor Generator to get moment.js, etc. Maybe @allan or @colin can make some updates to the Download Builder to help when you open the "please visit" link.

    Kevin

  • allanallan Posts: 63,212Questions: 1Answers: 10,415 Site admin

    Yes, we no longer host a few of the files you listed there I'm afraid. pdfmake for example (it was taking a massive amount of bandwidth!), and the Editor plug-ins. If you want to continue using them you'd need to host them locally on your server along with using out main software via our CDN.

    Allan

This discussion has been closed.