datatables.inc loads jquery.dataTables.min.js, dataTables.buttons.min.js, and buttons.colVis.min.js columns_settings.inc also loads dataTables.buttons.min.js, buttons.colVis.min.js This would be fine if each were used independently, but columns_settings.inc is always included along with datatables.inc.
Is there any reason to include dataTables.buttons.min.js and buttons.colVis.min.js on pages which do not have columns configuration enabled?
datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. So yes, now it does not make sense to have them included in both files.
Created attachment 48433 [details] [review] Bug 15921: Do not include datatables js/css files twice datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. Test plan: Test tables using buttons (columns visibility), they should work as before this patch.
Created attachment 49082 [details] [review] [SIGNED-OFF] Bug 15921: Do not include datatables js/css files twice datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. Test plan: Test tables using buttons (columns visibility), they should work as before this patch. Signed-off-by: Srdjan <srdjan@catalyst.net.nz>
With this patch "columns visibility" on administration/currencies doesn't appear to work anymore.
Created attachment 49386 [details] [review] Bug 15921: Do not include datatables js/css files twice datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. Test plan: Test tables using buttons (columns visibility), they should work as before this patch.
Created attachment 49433 [details] [review] Bug 15921: Do not include datatables js/css files twice datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. Test plan: Test tables using buttons (columns visibility), they should work as before this patch. Tested with patron search and administration/currencies, works as expected. Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 49481 [details] [review] [PASSED QA] Bug 15921: Do not include datatables js/css files twice datatables.inc loads dataTables.buttons.min.js and buttons.colVis.min.js since bug 15285: Update common files because the dom param now contains 'B'. The DT init fails with it does not know what 'B' means. Test plan: Test tables using buttons (columns visibility), they should work as before this patch. Tested with patron search and administration/currencies, works as expected. Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Pushed to Master - should be in the May 2016 release. Thanks!
Not needed in stable versions, status changed to RESOLVED