Commit 5de6c7c628c1f99f5b1e82b610d168c5f4299fab

Authored by yekolia
1 parent 7fafed52

New:

- Adding support for jQuery tipTip plugin : it's a tooltip plugin.

Modification
 - Modification a comment.
web/CXM_jquery_datatable.anubis
... ... @@ -15,7 +15,7 @@ read tools/basis.anubis
15 15 read system/string.anubis
16 16 read system/convert.anubis
17 17  
18   -/* Initialize jQuery in compatiblity mode with jQueryUI */
  18 +/* Initialize jQuery datatables */
19 19 public define List(HTML_Head_Tag)
20 20 jquery_datatables_init
21 21 (
... ...
web/CXM_jquery_tiptip.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: Jeremy
  4 + * Date: 18/09/2012
  5 + * Time: 15:42
  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 +read system/convert.anubis
  15 +
  16 +/* Initialize jQuery tipTip */
  17 +public define List(HTML_Head_Tag)
  18 + jquery_tiptip_init
  19 + (
  20 + String web_dir,
  21 + )
  22 + =
  23 + [
  24 + css(css_file("/css/jquery/tipTip.css")),
  25 + js(js_file("/js/jquery/jquery.tipTip.minified.js"))
  26 + ]
  27 + .
  28 +
  29 +
  30 +/* Create a tipTip tooltip with a HTML_Partial_Content */
  31 +public define HTML_Partial_Content
  32 + jquery_tiptip
  33 + (
  34 + String rollovered_id, // id of the element on which toolip will be displayed => IT MUST BE UNIQUE !!!!
  35 + String tooltip_id, // id used to make a container around tooltip content => Uniqueness of the container's id is made with the addition of a timestamp as a suffix
  36 + HTML_Partial_Content tooltip_partial_content
  37 + )
  38 + =
  39 + if tooltip_partial_content is partial_content(head, body) then
  40 + partial_content(
  41 + [
  42 + js_inline(script("", "
  43 + $(document).ready(function()
  44 + {
  45 + var tooltip_"+now+"=$('#"+tooltip_id+"-"+now+"').html();
  46 + $('#"+rollovered_id+"').tipTip({maxWidth: 'auto', edgeOffset: 10, content: tooltip_"+now+"});
  47 + });
  48 + "))
  49 + .
  50 + head
  51 + ],
  52 + sequence([
  53 + literal("<div id=\""+tooltip_id+"-"+now+"\" style=\"display:none\">"),
  54 + body,
  55 + literal("</div>")
  56 + ])
  57 + )
  58 + .
  59 +
  60 +/* Create a tipTip tooltip with a HTML_Off_Form */
  61 +public define HTML_Partial_Content
  62 + jquery_tiptip
  63 + (
  64 + String rollovered_id, // id of the element on which toolip will be displayed => IT MUST BE UNIQUE !!!!
  65 + String tooltip_id, // id used to make a container around tooltip content => Uniqueness of the container's id is made with the addition of a timestamp as a suffix
  66 + HTML_Off_Form html_content
  67 + )
  68 + =
  69 + jquery_tiptip(rollovered_id, tooltip_id, partial_content([], html_content))
  70 + .
  71 +
... ...