Commit d714775d5f4fc32d0dc819d779840ecc85c011ab
1 parent
345fb27c
add a jquery_ready function which return a string
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
web/CXM_jquery.anubis
| @@ -50,7 +50,13 @@ public define Script | @@ -50,7 +50,13 @@ public define Script | ||
| 50 | String code //javascript code to execute when the document is ready | 50 | String code //javascript code to execute when the document is ready |
| 51 | )= | 51 | )= |
| 52 | script("text/javascript","$(document).ready(function(){"+code+"});"). | 52 | script("text/javascript","$(document).ready(function(){"+code+"});"). |
| 53 | - | 53 | + |
| 54 | +public define String | ||
| 55 | + jquery_ready | ||
| 56 | + ( | ||
| 57 | + String code //javascript code to execute when the document is ready | ||
| 58 | + )= | ||
| 59 | + "$(document).ready(function(){"+code+"});". | ||
| 54 | 60 | ||
| 55 | /* jQuery default js files */ | 61 | /* jQuery default js files */ |
| 56 | define List(HTML_Head_Tag) | 62 | define List(HTML_Head_Tag) |