Skip to content

Commit

Permalink
Print: use hasWidget function
Browse files Browse the repository at this point in the history
  • Loading branch information
Mottie committed Nov 28, 2016
1 parent 793a59d commit 466c303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/widgets/widget-print.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// columnSelector -> c.selector.$style
// Assume 'visible' means hidden columns have a 'display:none' style, or a class name
// add the definition to the wo.print_extraCSS option
if (/s/i.test(wo.print_columns) && c.selector && c.widgets.indexOf('columnSelector') >= 0) {
if (/s/i.test(wo.print_columns) && c.selector && ts.hasWidget( c.table, 'columnSelector' )) {
// show selected (visible) columns; make a copy of the columnSelector widget css (not media queries)
printStyle += wo.columnSelector_mediaquery && c.selector.auto ? '' : c.selector.$style.text();
} else if (/a/i.test(wo.print_columns)) {
Expand Down

0 comments on commit 466c303

Please sign in to comment.