liLink,
(po) ? 'foo' : '', // forces class='hiddenfoo' i.e. not hidden
(pl) ? 'foo' : '', // ditto
- ]
+ ],
+ function(str) {
+ // prevent long titles from filling up the page
+ var truncSize = 100;
+ if(str.length > truncSize)
+ str = str.substring(0, truncSize) + '...';
+ return str;
+ }
);
callback(lineitem, displayString);