X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-mask.html;h=19942b58b99d777db55e6a31f5e9c2c0eca4296e;hb=e9e0cf0989259b94d9758eceff448666a2e5a5cc;hp=33725b9a5a44acde964ecd982bdef414963a19e2;hpb=7d68066ea33f9f85fe14ce663372642d7ec2ad20;p=freeside.git
diff --git a/httemplate/elements/tr-input-mask.html b/httemplate/elements/tr-input-mask.html
index 33725b9a5..19942b58b 100644
--- a/httemplate/elements/tr-input-mask.html
+++ b/httemplate/elements/tr-input-mask.html
@@ -5,6 +5,7 @@
% }
<& /elements/tr-input-text.html, id => $id, @_ &>
+
<%shared>
my $init = 0;
%shared>
@@ -21,6 +60,8 @@ my %opt = @_;
# must have a DOM id
my $id = $opt{id} || sprintf('input%04d',int(rand(10000)));
my $value = length($opt{curr_value}) ? $opt{curr_value} : $opt{value} || '';
+
+my $clipboard_hack = $FS::CurrentUser::CurrentUser->option('enable_mask_clipboard_hack');
%init>
<%doc>
Set up a text input field with input masking.