From dd385fc2e9e6a2381ff0052582df6f072193cdb2 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 13 Nov 2014 20:15:22 -0500 Subject: [PATCH] Bug 13253 - Unnecessary white space above checkouts table in circulation On the new checkouts page there is some padding above the checkouts, relatives' checkouts, and holds tables caused by extra markup in the table's sDom configuration (http://legacy.datatables.net/ref#sDom): <'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t This creates several empty
s which don't serve any purpose. This patch simplifies it to: rt To test, apply the patch, clear your browser cache, and check out to a patron who has items checked out, holds on their account, and child records attached which also have checkouts. The padding above the table of checkouts, the table of relatives' checkouts, and the table of holds should match that on the sides. Signed-off-by: Liz Rea Checked per plan on both Check Out and Details pages, spacing appears correct. Signed-off-by: Katrin Fischer Works as described, no problems found. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/js/holds.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index e3337760eb..ece3ff2c47 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -156,7 +156,7 @@ $(document).ready(function() { "sEmptyTable" : MSG_DT_LOADING_RECORDS, }, "bAutoWidth": false, - "sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", + "sDom": "rt", "aoColumns": [ { "mDataProp": function( oObj ) { @@ -398,7 +398,7 @@ $(document).ready(function() { if ( ! relativesIssuesTable ) { relativesIssuesTable = $("#relatives-issues-table").dataTable({ "bAutoWidth": false, - "sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", + "sDom": "rt", "aaSorting": [], "aoColumns": [ { diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js index 73807ea9d1..253f3396f6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/holds.js @@ -5,7 +5,7 @@ $(document).ready(function() { if ( ! holdsTable ) { holdsTable = $("#holds-table").dataTable({ "bAutoWidth": false, - "sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", + "sDom": "rt", "aoColumns": [ { "mDataProp": "reservedate_formatted" -- 2.39.5