From 3afd9f03b033f486018716cd29de02c7bebf1375 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 14 Apr 2014 13:45:22 -0400 Subject: [PATCH] Bug 11703 [QA Followup] - Bold record title, fix table width --- koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js index 268eefe..01098c9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js @@ -127,6 +127,7 @@ $(document).ready(function() { var issuesTable; var drawn = 0; issuesTable = $("#issues-table").dataTable({ + "bAutoWidth": false, "sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", "aaSorting": [[ 0, "desc" ]], "aoColumns": [ @@ -157,7 +158,7 @@ $(document).ready(function() { }, { "mDataProp": function ( oObj ) { - title = "" + oObj.title; @@ -166,7 +167,7 @@ $(document).ready(function() { title += " " + value.subfield; }); - title += ""; + title += ""; if ( oObj.author ) { title += " " + BY + " " + oObj.author; @@ -201,6 +202,7 @@ $(document).ready(function() { { "bSortable": false, "mDataProp": function ( oObj ) { + if ( ! oObj.charge ) oObj.charge = 0; return parseFloat(oObj.charge).toFixed(2); } }, @@ -333,6 +335,7 @@ $(document).ready(function() { $("#relatives-issues-tab").click( function() { if ( ! relativesIssuesTable ) { relativesIssuesTable = $("#relatives-issues-table").dataTable({ + "bAutoWidth": false, "sDom": "<'row-fluid'<'span6'><'span6'>r>t<'row-fluid'>t", "aaSorting": [], "aoColumns": [ @@ -349,7 +352,7 @@ $(document).ready(function() { }, { "mDataProp": function ( oObj ) { - title = "" + oObj.title; @@ -358,7 +361,7 @@ $(document).ready(function() { title += " " + value.subfield; }); - title += ""; + title += ""; if ( oObj.author ) { title += " " + BY + " " + oObj.author; -- 1.7.2.5