projects
/
freeside.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
continue sales person work: customer and package selection, commissions, reporting...
[freeside.git]
/
httemplate
/
elements
/
onload.js
1
<%doc>
2
Filter component to attach a window.onload handler.
3
4
Usage:
5
<script>
6
<&| elements/onload.js &>
7
if ( the_stars_are_right ) {
8
run_this_function();
9
}
10
</&>
11
</script>
12
13
</%doc>
14
(function() {
15
var tmp = window.onload;
16
window.onload = function() {
17
if (typeof(tmp)== 'function') {
18
tmp();
19
}
20
<% $m->content %>
21
};
22
})();