From 765535c09ac4cf9c22438e54048f185adfb4a6ac Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 11 Mar 2016 08:06:30 -0500 Subject: [PATCH] Bug 16048 [Follow-up] Making notices actions buttons This followup adds a "td.actions" style with "white-space:nowrap" and replaces the inline styles. Also modified is the way non-sorting table columns are defined. This corrects a problem with non-sortable columns introducted by the previous patch's column changes. To test, apply the patch and clear your browser cache if necessary. - Go to Tools -> Notices and confirm that even at narrow browser widths the "Edit" and "Delete" buttons stay side by side. - Confirm that all columns are sortable except "Copy notice" and "Actions." Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ .../intranet-tmpl/prog/en/modules/tools/letter.tt | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css index 8abb9ee9d7..e6116ce160 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css +++ b/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css @@ -237,6 +237,10 @@ table.indexes td { vertical-align : middle; } +td.actions { + white-space: nowrap; +} + td.borderless { border-collapse : separate; border : 0 none; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index 91f6f1031f..7b86d93190 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -12,7 +12,7 @@ $(document).ready(function() { $("#lettert:has(tbody tr)").dataTable($.extend(true, {}, dataTablesDefaults, { "sDom": 't', "aoColumnDefs": [ - { "aTargets": [ -1,-2, -3 ], "bSortable": false, "bSearchable": false } + { "bSortable": false, "bSearchable": false, 'aTargets': [ 'nosort' ] } ], "bPaginate": false })); @@ -199,8 +199,8 @@ $(document).ready(function() { Module Code Name - Copy notice - Actions + Copy notice + Actions @@ -211,7 +211,7 @@ $(document).ready(function() { [% lette.module %] [% lette.code %] [% lette.name %] - + [% IF !independant_branch || !lette.branchcode %]
@@ -227,7 +227,7 @@ $(document).ready(function() {
[% END %] - + [% IF can_edit %] Edit [% END %] -- 2.39.5