From 92adf71887c2680f464d660cab727ea112e858a5 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Thu, 15 Jan 2015 20:35:51 -0800 Subject: MAC address copying hack for view/ pages, #25599 --- httemplate/elements/mac_addr.html | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 httemplate/elements/mac_addr.html (limited to 'httemplate/elements/mac_addr.html') diff --git a/httemplate/elements/mac_addr.html b/httemplate/elements/mac_addr.html new file mode 100644 index 000000000..1d867f504 --- /dev/null +++ b/httemplate/elements/mac_addr.html @@ -0,0 +1,53 @@ +% if (!$init) { +% if ($clipboard_hack) { +<& init_overlib.html &> + + +% } # if $clipboard_hack +% $init++; +% } +%# the only part to be included in every instance +<% $value |h %> +<%shared> +my $init = 0; + +<%init> +my $clipboard_hack = + $FS::CurrentUser::CurrentUser->option('enable_mask_clipboard_hack'); +my $value = shift; # no other params + -- cgit v1.2.1