Bugzilla – Attachment 38617 Details for
Bug 12135
Pending suggestions table width is wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12135: Fix suggestions table width
PASSED-QA-Bug-12135-Fix-suggestions-table-width.patch (text/plain), 1.78 KB, created by
Katrin Fischer
on 2015-04-28 21:16:06 UTC
(
hide
)
Description:
[PASSED QA] Bug 12135: Fix suggestions table width
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2015-04-28 21:16:06 UTC
Size:
1.78 KB
patch
obsolete
>From fe1cc90eab03f988c2001cb2882dd4eda98245f0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 27 Apr 2015 16:55:32 +0200 >Subject: [PATCH] [PASSED QA] Bug 12135: Fix suggestions table width > >The trick to update the suggestions table width is outdated since jQuery >UI has been updated. > >Test plan: >0/ Don't apply this patch >1/ Go on the suggestions page (suggestion/suggestion.pl), change tabs: >the table width is wrong >2/ Apply this patch >4/ Repeat 1 and confirm the width is now updated. > >Signed-off-by: Christopher Brannon <cbrannon@cdalibary.org> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >The table sizes still vary slightly, but this is an improvement. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >index c609a05..1c2e551 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt >@@ -47,11 +47,8 @@ $(document).ready(function() { > $('#suggestiontabs').tabs({ > // Correct table sizing for tables hidden in tabs > // http://www.datatables.net/examples/api/tabs_and_scrolling.html >- "show": function(event, ui) { >- var oTable = $('div.dataTables_wrapper>table', ui.panel).dataTable(); >- if ( oTable.length > 0 ) { >- oTable.fnAdjustColumnSizing(); >- } >+ "activate": function(event, ui) { >+ $( $.fn.dataTable.tables( true ) ).DataTable().columns.adjust(); > } > }); > $(".sorted").dataTable($.extend(true, {}, dataTablesDefaults, { >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 12135
:
38567
|
38612
| 38617