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