X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Finit_overlib.html;h=9866cdd4a95778c70ebb9fd621fd5293c0720e0f;hp=d27ca3bda51bdabf1683e8a6ed4dfd1af52d9df2;hb=b63fb40fd225e348b06191b535291d5ccf7af956;hpb=2d57d71025519495dd1cdfca3799a6652c674637 diff --git a/httemplate/elements/init_overlib.html b/httemplate/elements/init_overlib.html index d27ca3bda..9866cdd4a 100644 --- a/httemplate/elements/init_overlib.html +++ b/httemplate/elements/init_overlib.html @@ -1,9 +1,16 @@ % for my $file (@files) { % } +<%once> +my $initialized = 0; #won't work if component is "preloaded"... so don't do that + <%init> -my @files = map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); -push @files, map { "${_}contentmws" } qw( iframe ajax ); +my @files = (); +if ( ! $initialized ) { + push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); + push @files, map { "${_}contentmws" } qw( iframe ajax ); + $initialized++; +}