summaryrefslogtreecommitdiff
path: root/httemplate/elements/init_overlib.html
blob: 986adec4020a6e530ca537f20ac2e06d0211fd4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
% for my $file (@files) {
  <SCRIPT TYPE="text/javascript" SRC="<%$fsurl%>elements/<%$file%>.js"></SCRIPT>
% }
<%shared>
my $initialized = 0; #won't work if component is "preloaded"... so don't do that
</%shared>
<%init>

my @files = ();
if ( ! $initialized ) {
  push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) );
  push @files, map { "${_}contentmws" } qw( iframe ajax );
  $initialized++;
}

</%init>