X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-mask.html;h=fdd20962d50e63b413811fd8d7217cf4352b6ec4;hb=6e88780721c794c8d23d36a7cbdbc76ecf9c5c3b;hp=33725b9a5a44acde964ecd982bdef414963a19e2;hpb=a69299c596de60f4b26db7431165f7f3ffe928e2;p=freeside.git diff --git a/httemplate/elements/tr-input-mask.html b/httemplate/elements/tr-input-mask.html index 33725b9a5..fdd20962d 100644 --- a/httemplate/elements/tr-input-mask.html +++ b/httemplate/elements/tr-input-mask.html @@ -1,18 +1,67 @@ % if ( !$init ) { - % $init++; % } <& /elements/tr-input-text.html, id => $id, @_ &> + <%shared> my $init = 0; @@ -21,6 +70,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'); <%doc> Set up a text input field with input masking.