From 6db14d0fe65daec3d136edaa33a32a1fb24ba06a Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Tue, 20 Aug 2013 16:27:54 -0700 Subject: future package change: adjust behavior of date field, #20687 --- httemplate/elements/onload.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 httemplate/elements/onload.js (limited to 'httemplate/elements/onload.js') diff --git a/httemplate/elements/onload.js b/httemplate/elements/onload.js new file mode 100644 index 000000000..bfa7eef94 --- /dev/null +++ b/httemplate/elements/onload.js @@ -0,0 +1,22 @@ +<%doc> +Filter component to attach a window.onload handler. + +Usage: + + + +(function() { + var tmp = window.onload; + window.onload = function() { + if (typeof(tmp)== 'function') { + tmp(); + } +<% $m->content %> + }; +})(); -- cgit v1.2.1