X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Finit_overlib.html;h=986adec4020a6e530ca537f20ac2e06d0211fd4b;hb=04f53daab621710db56b075e1aaf56e7c52f9ba9;hp=12084f61ccf24a3190424d879e000c2847b4439b;hpb=19f9cc14302fdae5dbfcb580abea3c03ee612593;p=freeside.git diff --git a/httemplate/elements/init_overlib.html b/httemplate/elements/init_overlib.html index 12084f61c..986adec40 100644 --- a/httemplate/elements/init_overlib.html +++ b/httemplate/elements/init_overlib.html @@ -1,9 +1,16 @@ % for my $file (@files) { % } +<%shared> +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, 'iframecontentmws'; +my @files = (); +if ( ! $initialized ) { + push @files, map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); + push @files, map { "${_}contentmws" } qw( iframe ajax ); + $initialized++; +}