projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FS RT #25694 - added two configuration options for requiring CVV data to be entered...
[freeside.git]
/
httemplate
/
elements
/
tr-input-mask.html
diff --git
a/httemplate/elements/tr-input-mask.html
b/httemplate/elements/tr-input-mask.html
index
8a494c8
..
19942b5
100644
(file)
--- a/
httemplate/elements/tr-input-mask.html
+++ b/
httemplate/elements/tr-input-mask.html
@@
-18,6
+18,10
@@
var t = document.getElementById('<% $id %>');
var container = document.getElementById('<%$id%>_clipboard');
var KeyHandlerDown = t.onkeydown
t.onkeydown = function(e) {
var container = document.getElementById('<%$id%>_clipboard');
var KeyHandlerDown = t.onkeydown
t.onkeydown = function(e) {
+ if (typeof(e) == 'undefined') {
+ // ie8 hack
+ e = event;
+ }
// intercept ctrl-c and ctrl-x
// and cmd-c and cmd-x on mac
// when text is selected
// intercept ctrl-c and ctrl-x
// and cmd-c and cmd-x on mac
// when text is selected
@@
-37,14
+41,17
@@
t.onkeydown = function(e) {
};
container.onkeyup = function(e) {
if ( container.previous ) {
};
container.onkeyup = function(e) {
if ( container.previous ) {
- setTimeout(function() {container.previous.focus();}, 10);
+ setTimeout(function() {
+ //container.previous.value = container.value;
+ container.previous.focus();
+ }, 10);
}
return true;
}
% } # clipboard hack
</&>
</script>
}
return true;
}
% } # clipboard hack
</&>
</script>
-<
textarea id="<%$id%>_clipboard" style="opacity:0"></textarea
>
+<
input type="text" id="<%$id%>_clipboard" style="position:absolute; pointer-events: none; z-index: -1; opacity:0"
>
<%shared>
my $init = 0;
</%shared>
<%shared>
my $init = 0;
</%shared>