[Koha-bugs] [Bug 12135] Pending suggestions table width is wrong
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Apr 24 20:55:27 CEST 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12135
--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
There is code in the template which is supposed to fix this which stopped
working when we upgraded jQueryUI. The width of tables which are hidden in
non-visible tabs cannot be correctly calculated until they are shown--hidden
elements have no width. This code fixed it before the jQueryUI upgrade:
$('#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();
}
}
});
The jQueryUI API has changed, so this needs to be corrected on this page and
others.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list