From 6cdcacfee9a854aff06081ae32b8ff84d4b2daa9 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Tue, 19 Jan 2016 02:25:56 -0500 Subject: [PATCH] Use addEventListener(). --- entry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry.js b/entry.js index 64e7241..bd97c91 100644 --- a/entry.js +++ b/entry.js @@ -682,7 +682,7 @@ function checkpoint(id) { input.maxLength = input.size = 19; input.id = input.name = id; input.tabIndex = parseInt(id.replace(/^lap(\d+)station\d+$/, function(ignored, ret) { return ret; })); - input.onchange = changed; + input.addEventListener('change', changed, true); return input; } @@ -695,7 +695,7 @@ function hull(lap, suffix) { input.pattern = '^(?:0|100|[1-9][0-9]?)$'; input.maxLength = input.size = 3; input.id = input.name = 'lap' + String(lap) + 'hull' + suffix; - input.onchange = changed_hull; + input.addEventListener('change', changed_hull, true); return input; } @@ -801,7 +801,7 @@ function loaded() { }); } var joker = get_joker(); - if (joker) joker.onchange = changed_joker; + if (joker) joker.addEventListener('change', changed_joker, true); if (typeof distances != 'undefined') update_raikogram(table); validate(table); var stats = document.getElementById('stats').getElementsByTagName('table')[0]; -- 2.7.4