+ <script type="text/javascript" src="${bootstrapjs1}"></script>
+ <script type="text/javascript" src="${modernizr}"></script>
+ <script type="text/javascript" src="${table2CSVJS}"></script>
+
+ <script type="application/javascript">
+ $(document).ready(function() {
+ $('#counts').dataTable(
+ {
+ "sPaginationType": "bootstrap",
+ 'aaSorting': [[0,'desc']],
+ 'aLengthMenu': [[20, 50, 100, -1], [20, 50, 100, 'All']],
+ 'iDisplayLength': 50
+ }
+ );
+ } );
+ $.extend( $.fn.dataTableExt.oStdClasses, {"sWrapper": "dataTables_wrapper form-inline"} );
+ </script>
+
+ <script type="application/javascript">
+ function shorten(text, maxLength) {
+ var ret = text;
+ if (ret.length > maxLength) {
+ ret = ret.substr(0,maxLength-3) + "...";
+ }
+ return ret;
+ }
+ </script>