Language url blocking buttons

Language url blocking buttons

PCowanPCowan Posts: 1Questions: 1Answers: 0

Hey all,
I have a JavaScript controller defining the structure of a DataTable.
In this controller I am defining some buttons and using a URL to set the language (along with other things)

"buttons": structure.Table.Buttons,
"language": {
                    "emptyTable": structure.Table.Messages.NoRecordsMesssage,
                    "url": "http://cdn.datatables.net/plug-ins/1.10.21/i18n/Language.json".replace("Language", translations['Lang'])
                }

The Buttons and the emptyTable value are defined like so:

Table: {
                    DataTable: {},
                    HtmlTableId: "",
                    Messages: {
                        NoRecordsMesssage: translations['NoRecordsMesssage']
                    },
                    Buttons: [
                        {
                            extend: "csvHtml5",
                            text: translations['ExportCSV'],
                            exportOptions: {
                                columns: ":not(.no-print)"
                            }
                        },
                        {
                            extend: "print",
                            messageTop: null,
                            title: translations['KUEModules'],
                            exportOptions: {
                                columns: ":not(.no-print)"
                            },
                            autoPrint: true,
                            customize: function (win) {
                                jQuery(win.document.body).find("html")
                                    .removeClass("ccc-bcg");

                                jQuery(win.document.body).find("table")
                                    .removeClass("table-bordered table-hover table-responsive");
                            }
                        }
                    ]

However, My issue is that whenever the url option is within language, the buttons defined above are not displayed.
Would like to figure out what is going on here.
Thanks.

Answers

This discussion has been closed.