-
Notifications
You must be signed in to change notification settings - Fork 576
/
Copy pathdataTables.html
executable file
·16 lines (16 loc) · 1.1 KB
/
dataTables.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{if s3.debug:}}{{scripts_append = s3.scripts.append}}
{{scripts_append("/%s/static/scripts/jquery.dataTables.js" % appname)}}
{{scripts_append("/%s/static/scripts/jquery.dataTables.foundation.js" % appname)}}
{{scripts_append("/%s/static/scripts/jquery.dataTables.responsive.js" % appname)}}
{{scripts_append("/%s/static/scripts/jquery.dataTables.sortFunctions.js" % appname)}}
{{scripts_append("/%s/static/scripts/S3/s3.ui.datatable.js" % appname)}}
{{else:}}{{s3.scripts.append("/%s/static/scripts/S3/s3.ui.datatable.min.js" % appname)}}{{pass}}
<script type="text/javascript">
{{=XML(s3base.S3DataTable.i18n())}}
S3.dataTables={}
{{if s3.dataTableID:}}{{idlist=[s3.dataTableID] if not isinstance(s3.dataTableID, (tuple, list)) else s3.dataTableID}}
S3.dataTables.id=[{{=XML(",".join(["'%s'" % id for id in idlist]))}}]{{pass}}
S3.dataTables.initComplete=function(){{=xmlescape("{")}}{{if s3.dataTable_initComplete:}}{{=XML(s3.dataTable_initComplete)}}{{pass}}{{=xmlescape("}")}}
{{if s3.actions:}}S3.dataTables.Actions={{=XML(s3.actions)}}{{pass}}
</script>
{{if s3.dataTableMap:}}{{=XML(s3.dataTableMap)}}{{pass}}