From de962f44ab7dba95bd0327c7dbbce0ee0c49ca8b 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 Content-Type: text/plain; charset="utf-8" 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." --- koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css | 4 ++++ koha-tmpl/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 8abb9ee..e6116ce 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 91f6f10..7b86d93 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.1.4