Koha/koha-tmpl/intranet-tmpl
Owen Leonard dca51f46aa
Bug 23612: If no columns in a table can be toggled, don't show columns button
This patch makes a change to the JavaScript setup for DataTables button
controls so that if there are no toggle-able buttons (or there is no
columns configuration at all) the column selection menu button will not
appear.

To test, apply the patch and go to Administration -> Columns settings.

 - In the Administration section, find the section for the "libraries"
   table.
 - In the "Cannot be toggled" column, check all the checkboxes.
 - Save.
 - Go to Administration -> Libraries.
 - At the top of the table there should be no "Columns" button, only
   "Clear filter" and "Export" buttons.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-03 10:45:46 +01:00
..
js Bug 23438: Use Font Awesome icons in intranet search results browser 2019-08-13 11:39:57 +01:00
lib Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
prog Bug 23612: If no columns in a table can be toggled, don't show columns button 2019-10-03 10:45:46 +01:00