X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-mask.html;h=19942b58b99d777db55e6a31f5e9c2c0eca4296e;hb=4089c2c6d951b1d4355dbe63a692703e36a49ba9;hp=922f22f4ba339cd208baae11fcb10ec448d15af3;hpb=422e87b24b866eaa420258d97d4ccdc089019f88;p=freeside.git
diff --git a/httemplate/elements/tr-input-mask.html b/httemplate/elements/tr-input-mask.html
index 922f22f4b..19942b58b 100644
--- 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) {
+ 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
@@ -38,7 +42,7 @@ t.onkeydown = function(e) {
container.onkeyup = function(e) {
if ( container.previous ) {
setTimeout(function() {
- container.previous.value = container.value;
+ //container.previous.value = container.value;
container.previous.focus();
}, 10);
}
@@ -47,7 +51,7 @@ container.onkeyup = function(e) {
% } # clipboard hack
&>
-
+
<%shared>
my $init = 0;
%shared>