X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-input-mask.html;h=19942b58b99d777db55e6a31f5e9c2c0eca4296e;hb=0a5b2467d57cf94a2786bb76a106b14596e30916;hp=8a494c8de741f338219da8889f392f8b49f7f14c;hpb=a5b0ddc40f119370fa4abf718931fb6832c34924;p=freeside.git
diff --git a/httemplate/elements/tr-input-mask.html b/httemplate/elements/tr-input-mask.html
index 8a494c8de..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
@@ -37,14 +41,17 @@ t.onkeydown = function(e) {
};
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
&>
-
+
<%shared>
my $init = 0;
%shared>