CXM_jquery_datatable.anubis
964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Created by PyramIDE.
* User: Jeremy
* Date: 12/09/2012
* Time: 16:14
*
* To change this template use Tools | Options | Coding | Edit Standard Headers.
*/
read calexium_lib/web/CXM_making_a_web_site.anubis
read calexium_lib/web/CXM_jquery.anubis
read tools/basis.anubis
read system/string.anubis
/* Initialize jQuery in compatiblity mode with jQueryUI */
public define List(HTML_Head_Tag)
jquery_datatables_init
(
String web_dir,
)
=
[
css(css_file("/css/jquery/jquery.dataTables.css")),
css(css_file("/css/jquery/jquery.dataTables_themeroller.css")),
js(js_file("/js/jquery/jquery.dataTables.min.js"))
]
.
public define HTML_Partial_Content
jquery_datatable
(
String table_id,
HTML_Off_Form table
)
=
partial_content(
[ js_inline(script("", "$(document).ready(function(){$('#"+table_id+"').dataTable();});")) ],
table
)
.