From 19f9cc14302fdae5dbfcb580abea3c03ee612593 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 31 Mar 2008 22:27:55 +0000 Subject: [PATCH] overlib cleanup: easy static CVV2/echeck popups --- httemplate/edit/cust_main/billing.html | 11 +---------- httemplate/elements/init_overlib.html | 9 +++++++++ httemplate/misc/payment.cgi | 12 ++---------- 3 files changed, 12 insertions(+), 20 deletions(-) create mode 100644 httemplate/elements/init_overlib.html diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index 6ed35c15a..6b1c2a86f 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -107,16 +107,7 @@ - - - - + <% include('/elements/init_overlib.html') %> % my $payby = $cust_main->payby; % my $paytype = $cust_main->paytype; diff --git a/httemplate/elements/init_overlib.html b/httemplate/elements/init_overlib.html new file mode 100644 index 000000000..12084f61c --- /dev/null +++ b/httemplate/elements/init_overlib.html @@ -0,0 +1,9 @@ +% for my $file (@files) { + +% } +<%init> + +my @files = map "overlibmws$_", ( '', qw( _iframe _draggable _crossframe ) ); +push @files, 'iframecontentmws'; + + diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index f99f2f068..7546a858a 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -6,16 +6,8 @@ - - - - +<% include('/elements/init_overlib.html') %> + % #include( '/elements/table.html', '#cccccc' ) <% ntable('#cccccc') %> -- 2.11.0